summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-06-03 17:30:49 +0000
committersr55 <[email protected]>2015-06-03 17:30:49 +0000
commit07bffb6d8e38e78221b8611a5413468479d91f6a (patch)
tree0d65c7f5bcf47baac96cf8fff255d10cfb11ad86 /win
parentdcdbfd6a12b7ad09ffd869d81a2ca181c0d48eda (diff)
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
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs11
1 files changed, 4 insertions, 7 deletions
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);