diff options
author | sr55 <[email protected]> | 2017-01-22 16:12:52 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-01-22 16:13:11 +0000 |
commit | 24b6bc90f7753e8dba564e920473c6f1648a3bea (patch) | |
tree | 0f2e7403d7016b29fbb71584ec2967986dc99b34 | |
parent | 43001c3967cd3b798a28df6ad7a8eaf7cfcdee22 (diff) |
WinGui: Fix an issue with QueueEdit not restoring PointToPoint settings correctly.
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index a263e0e52..9405c3a2b 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -18,7 +18,6 @@ namespace HandBrakeWPF.ViewModels using System.Linq;
using System.Threading;
using System.Windows;
- using System.Windows.Forms;
using System.Windows.Input;
using Caliburn.Micro;
@@ -2105,13 +2104,15 @@ namespace HandBrakeWPF.ViewModels this.CurrentTask = new EncodeTask(queueEditTask);
this.NotifyOfPropertyChange(() => this.CurrentTask);
this.HasSource = true;
-
+
// Update the Main Window
this.NotifyOfPropertyChange(() => this.Destination);
- this.NotifyOfPropertyChange(() => this.SelectedStartPoint);
- this.NotifyOfPropertyChange(() => this.SelectedEndPoint);
- this.NotifyOfPropertyChange(() => this.SelectedAngle);
- this.NotifyOfPropertyChange(() => this.SelectedPointToPoint);
+ this.SelectedAngle = this.CurrentTask.Angle;
+ int start = this.CurrentTask.StartPoint;
+ int end = this.CurrentTask.EndPoint;
+ this.SelectedPointToPoint = this.CurrentTask.PointToPointMode; // Force reset.
+ this.SelectedStartPoint = start;
+ this.SelectedEndPoint = end;
this.NotifyOfPropertyChange(() => this.SelectedOutputFormat);
this.NotifyOfPropertyChange(() => IsMkv);
|