summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-01-23 21:00:15 +0000
committersr55 <[email protected]>2017-01-23 21:00:15 +0000
commitc4a14d3465d4bc663bdb0ad061cba21eeef44afd (patch)
tree2d72ac0b78d5819d4d3634ff0c7543761f8c5b64
parentd6519f23ced6869b06689416648c1e45526b6517 (diff)
WinGui: Another fix to WhenDone. Should reset when the main window opens, not when preferences opens.
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 9405c3a2b..08e54214a 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1266,6 +1266,12 @@ namespace HandBrakeWPF.ViewModels
this.SelectedPreset = this.presetService.DefaultPreset;
+ // Reset WhenDone if necessary.
+ if (this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ResetWhenDoneAction))
+ {
+ this.WhenDone("Do nothing");
+ }
+
// Log Cleaning
if (userSettingService.GetUserSetting<bool>(UserSettingConstants.ClearOldLogs))
{