diff --git a/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw b/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw index df4bd97..9ebfef6 100644 --- a/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw +++ b/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw @@ -120,6 +120,15 @@ Settings + + Notifications + + + Show notifications when task ended successfully + + + Show notifications when task ended unsuccessfully + Searching diff --git a/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs b/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs index 6766e4e..fb98fa7 100644 --- a/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs +++ b/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs @@ -76,6 +76,18 @@ namespace VDownload.Core.ViewModels.Settings set => SetProperty(_settingsService.Data.Common.Tasks.DefaultOutputDirectory, value, _settingsService.Data.Common.Tasks, (u, n) => u.DefaultOutputDirectory = n); } + public bool NotificationsOnSuccessful + { + get => _settingsService.Data.Common.Notifications.OnSuccessful; + set => SetProperty(_settingsService.Data.Common.Notifications.OnSuccessful, value, _settingsService.Data.Common.Notifications, (u, n) => u.OnSuccessful = n); + } + + public bool NotificationsOnUnsuccessful + { + get => _settingsService.Data.Common.Notifications.OnUnsuccessful; + set => SetProperty(_settingsService.Data.Common.Notifications.OnUnsuccessful, value, _settingsService.Data.Common.Notifications, (u, n) => u.OnUnsuccessful = n); + } + public string TempDirectory { get => _settingsService.Data.Common.Temp.Directory; diff --git a/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml b/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml index e83c10a..97a3bdf 100644 --- a/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml +++ b/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml @@ -122,6 +122,27 @@ + + + + + + + + + + + + + + + + + /Assets/SettingsView/TasksOutputDirectoryLight.png /Assets/SettingsView/TempDirectoryLight.png /Assets/SettingsView/TempDeleteOnFailLight.png + /Assets/SettingsView/NotificationOnSuccessfulLight.png + /Assets/SettingsView/NotificationOnUnsuccessfulLight.png /Assets/SettingsView/SearchingPlaylistCountDark.png @@ -20,6 +22,8 @@ /Assets/SettingsView/TasksOutputDirectoryDark.png /Assets/SettingsView/TempDirectoryDark.png /Assets/SettingsView/TempDeleteOnFailDark.png + /Assets/SettingsView/NotificationOnSuccessfulDark.png + /Assets/SettingsView/NotificationOnUnsuccessfulDark.png diff --git a/VDownload/VDownload.csproj b/VDownload/VDownload.csproj index 59fcf65..664489e 100644 --- a/VDownload/VDownload.csproj +++ b/VDownload/VDownload.csproj @@ -204,6 +204,18 @@ Always + + Always + + + Always + + + Always + + + Always + Always