]> granicus.if.org Git - handbrake/commitdiff
WinGui: Don't open the source panel on launch if we are scanning a file by command...
authorsr55 <sr55.hb@outlook.com>
Wed, 28 Dec 2016 14:34:13 +0000 (14:34 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 28 Dec 2016 14:34:34 +0000 (14:34 +0000)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 9f7ad8cb3cf4beec422f6a7f84937b85960dc79a..2fa5425a54f59e4fe58dd90c0dd00b6b14a81cbf 100644 (file)
@@ -1531,8 +1531,6 @@ namespace HandBrakeWPF.ViewModels
 \r
             if (dialogResult.HasValue && dialogResult.Value)\r
             {\r
-                ShowSourceSelection = false;\r
-\r
                 this.StartScan(dialog.SelectedPath, this.TitleSpecificScan);\r
             }\r
         }\r
@@ -1547,8 +1545,6 @@ namespace HandBrakeWPF.ViewModels
 \r
             if (dialogResult.HasValue && dialogResult.Value)\r
             {\r
-                ShowSourceSelection = false;\r
-\r
                 this.StartScan(dialog.FileName, this.TitleSpecificScan);\r
             }\r
         }\r
@@ -2038,6 +2034,7 @@ namespace HandBrakeWPF.ViewModels
         {\r
             if (!string.IsNullOrEmpty(filename))\r
             {\r
+                ShowSourceSelection = false;\r
                 this.scanService.Scan(filename, title, null, HBConfigurationFactory.Create());\r
             }\r
         }\r