diff options
author | sr55 <[email protected]> | 2017-01-08 10:43:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-01-08 10:43:47 +0000 |
commit | 3e3218dfb1e09f7f2aa851d03c0dfedbf1b53a68 (patch) | |
tree | 1e7491cd47c2d6836c5cc07e5248439ba59ce9b2 /win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | |
parent | 0c34c5f8a2a368b894f3f671c582557ea45dc62d (diff) |
WinGui: Correctly synchronise the WhenDone dropdowns in the Queue, MainWindow and Preferences
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index f56e6f4fc..97811dec9 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -178,8 +178,29 @@ namespace HandBrakeWPF.ViewModels /// </param>
public void WhenDone(string action)
{
+ this.WhenDone(action, true);
+ }
+
+ /// <summary>
+ /// Update the When Done Setting
+ /// </summary>
+ /// <param name="action">
+ /// The action.
+ /// </param>
+ /// <param name="saveChange">
+ /// Save the change to the setting. Use false when updating UI.
+ /// </param>
+ public void WhenDone(string action, bool saveChange)
+ {
this.WhenDoneAction = action;
- this.userSettingService.SetUserSetting(UserSettingConstants.WhenCompleteAction, action);
+
+ if (saveChange)
+ {
+ this.userSettingService.SetUserSetting(UserSettingConstants.WhenCompleteAction, action);
+ }
+
+ IOptionsViewModel ovm = IoC.Get<IOptionsViewModel>();
+ ovm.UpdateSettings();
}
/// <summary>
|