]> granicus.if.org Git - handbrake/commitdiff
WinGui: Another fix to WhenDone. Should reset when the main window opens, not when...
authorsr55 <sr55.hb@outlook.com>
Mon, 23 Jan 2017 21:00:15 +0000 (21:00 +0000)
committersr55 <sr55.hb@outlook.com>
Tue, 7 Mar 2017 19:01:41 +0000 (19:01 +0000)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 25acc39b034aebd7f4e38240d605a440ccabee2e..5b671c23db3562a1f4db0b491289a2770d7ec35c 100644 (file)
@@ -1266,6 +1266,12 @@ namespace HandBrakeWPF.ViewModels
 \r
             this.SelectedPreset = this.presetService.DefaultPreset;\r
 \r
+            // Reset WhenDone if necessary.\r
+            if (this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ResetWhenDoneAction))\r
+            {\r
+                this.WhenDone("Do nothing");\r
+            }\r
+\r
             // Log Cleaning\r
             if (userSettingService.GetUserSetting<bool>(UserSettingConstants.ClearOldLogs))\r
             {\r