From 24b6bc90f7753e8dba564e920473c6f1648a3bea Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 22 Jan 2017 16:12:52 +0000 Subject: WinGui: Fix an issue with QueueEdit not restoring PointToPoint settings correctly. --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 13 +++++++------ 1 file 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); -- cgit v1.2.3