diff options
author | sr55 <[email protected]> | 2017-12-13 21:32:53 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-12-13 21:32:53 +0000 |
commit | 78bd4b97883b4010306e291ec1e934a71afaa73a (patch) | |
tree | 3193e7d633d89fc53a2167061b2816f0c0726e17 /win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | |
parent | 91bd97fb5525b686ec3b52978655ede2b56978f4 (diff) |
WinGui: Make the When Done Play Sound option more granular. Queue vs Encode preferences.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index 5f3241a12..4b7a4ac3e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -97,8 +97,8 @@ namespace HandBrakeWPF.ViewModels private bool showStatusInTitleBar;
private string whenDoneAudioFile;
-
private bool playSoundWhenDone;
+ private bool playSoundWhenQueueDone;
#endregion
@@ -418,6 +418,20 @@ namespace HandBrakeWPF.ViewModels }
}
+ public bool PlaySoundWhenQueueDone
+ {
+ get
+ {
+ return this.playSoundWhenQueueDone;
+ }
+ set
+ {
+ if (value == this.playSoundWhenQueueDone) return;
+ this.playSoundWhenQueueDone = value;
+ this.NotifyOfPropertyChange(() => this.PlaySoundWhenQueueDone);
+ }
+ }
+
#endregion
#region Output Files
@@ -1269,6 +1283,7 @@ namespace HandBrakeWPF.ViewModels this.WhenDoneAudioFile = Path.GetFileNameWithoutExtension(this.userSettingService.GetUserSetting<string>(UserSettingConstants.WhenDoneAudioFile)) ?? string.Empty;
this.WhenDoneAudioFileFullPath = this.userSettingService.GetUserSetting<string>(UserSettingConstants.WhenDoneAudioFile);
this.PlaySoundWhenDone = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.PlaySoundWhenDone);
+ this.PlaySoundWhenQueueDone = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.PlaySoundWhenQueueDone);
// #############################
// Output Settings
@@ -1429,6 +1444,7 @@ namespace HandBrakeWPF.ViewModels this.userSettingService.SetUserSetting(UserSettingConstants.ShowQueueInline, this.ShowQueueInline);
this.userSettingService.SetUserSetting(UserSettingConstants.ShowStatusInTitleBar, this.ShowStatusInTitleBar);
this.userSettingService.SetUserSetting(UserSettingConstants.PlaySoundWhenDone, this.PlaySoundWhenDone);
+ this.userSettingService.SetUserSetting(UserSettingConstants.PlaySoundWhenQueueDone, this.PlaySoundWhenQueueDone);
this.userSettingService.SetUserSetting(UserSettingConstants.WhenDoneAudioFile, this.WhenDoneAudioFileFullPath);
/* Output Files */
|