]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix an issue with QueueEdit not restoring PointToPoint settings correctly.
authorsr55 <sr55.hb@outlook.com>
Sun, 22 Jan 2017 16:12:52 +0000 (16:12 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 22 Jan 2017 16:13:46 +0000 (16:13 +0000)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index a263e0e52fd14294c4d984c8fd78f878fe37ace0..9405c3a2b0a65db7db336dabf893d36a609336b4 100644 (file)
@@ -18,7 +18,6 @@ namespace HandBrakeWPF.ViewModels
     using System.Linq;\r
     using System.Threading;\r
     using System.Windows;\r
-    using System.Windows.Forms;\r
     using System.Windows.Input;\r
 \r
     using Caliburn.Micro;\r
@@ -2105,13 +2104,15 @@ namespace HandBrakeWPF.ViewModels
                 this.CurrentTask = new EncodeTask(queueEditTask);\r
                 this.NotifyOfPropertyChange(() => this.CurrentTask);\r
                 this.HasSource = true;\r
-\r
+             \r
                 // Update the Main Window\r
                 this.NotifyOfPropertyChange(() => this.Destination);\r
-                this.NotifyOfPropertyChange(() => this.SelectedStartPoint);\r
-                this.NotifyOfPropertyChange(() => this.SelectedEndPoint);\r
-                this.NotifyOfPropertyChange(() => this.SelectedAngle);\r
-                this.NotifyOfPropertyChange(() => this.SelectedPointToPoint);\r
+                this.SelectedAngle = this.CurrentTask.Angle;\r
+                int start = this.CurrentTask.StartPoint;\r
+                int end = this.CurrentTask.EndPoint;\r
+                this.SelectedPointToPoint = this.CurrentTask.PointToPointMode; // Force reset.\r
+                this.SelectedStartPoint = start;\r
+                this.SelectedEndPoint = end;\r
                 this.NotifyOfPropertyChange(() => this.SelectedOutputFormat);\r
                 this.NotifyOfPropertyChange(() => IsMkv);\r
 \r