From 6ffa9d3b97e501e7ef15d7bf0573996361f59c17 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 28 Dec 2016 14:34:13 +0000 Subject: [PATCH] WinGui: Don't open the source panel on launch if we are scanning a file by command line arguments. --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 9f7ad8cb3..2fa5425a5 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1531,8 +1531,6 @@ namespace HandBrakeWPF.ViewModels if (dialogResult.HasValue && dialogResult.Value) { - ShowSourceSelection = false; - this.StartScan(dialog.SelectedPath, this.TitleSpecificScan); } } @@ -1547,8 +1545,6 @@ namespace HandBrakeWPF.ViewModels if (dialogResult.HasValue && dialogResult.Value) { - ShowSourceSelection = false; - this.StartScan(dialog.FileName, this.TitleSpecificScan); } } @@ -2038,6 +2034,7 @@ namespace HandBrakeWPF.ViewModels { if (!string.IsNullOrEmpty(filename)) { + ShowSourceSelection = false; this.scanService.Scan(filename, title, null, HBConfigurationFactory.Create()); } } -- 2.40.0