From: sr55 Date: Wed, 28 Dec 2016 14:34:13 +0000 (+0000) Subject: WinGui: Don't open the source panel on launch if we are scanning a file by command... X-Git-Tag: 1.1.0~839 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae9a19456eff0d5a4c41bab353a9084823e211ed;p=handbrake WinGui: Don't open the source panel on launch if we are scanning a file by command line arguments. --- 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()); } }