]> 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>
Mon, 23 Jan 2017 21:00:15 +0000 (21:00 +0000)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 9405c3a2b0a65db7db336dabf893d36a609336b4..08e54214a8d381746df7d04f7f25ebf34e7632b1 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