From 07bffb6d8e38e78221b8611a5413468479d91f6a Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 3 Jun 2015 17:30:49 +0000 Subject: WinGui: Revert last change. Only set the GUI to enabled when editing queue items instead. It's not necessary for the queue runs as the toolbar is still active anyway. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7271 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 2293df64a..327468411 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1194,12 +1194,8 @@ namespace HandBrakeWPF.ViewModels this.presetService.Load(); // Queue Recovery - bool isRecovered = QueueRecoveryHelper.RecoverQueue(this.queueProcessor, this.errorService); - if (isRecovered) - { - this.HasSource = true; - } - + QueueRecoveryHelper.RecoverQueue(this.queueProcessor, this.errorService); + this.SelectedPreset = this.presetService.DefaultPreset; // Log Cleaning @@ -1988,9 +1984,10 @@ namespace HandBrakeWPF.ViewModels this.NotifyOfPropertyChange(() => this.ScannedSource.Titles); // Select the Users Title - this.SelectedTitle = this.ScannedSource.Titles.FirstOrDefault(t => t.TitleNumber == this.CurrentTask.Title); + this.SelectedTitle = this.ScannedSource.Titles.FirstOrDefault(); this.CurrentTask = new EncodeTask(queueEditTask); this.NotifyOfPropertyChange(() => this.CurrentTask); + this.HasSource = true; // Update the Main Window this.NotifyOfPropertyChange(() => this.Destination); -- cgit v1.2.3