]> granicus.if.org Git - handbrake/commitdiff
WinGui: Update the new radio buttons to work with the presets changing.
authorsr55 <sr55.hb@outlook.com>
Tue, 27 Aug 2013 17:57:14 +0000 (17:57 +0000)
committersr55 <sr55.hb@outlook.com>
Tue, 27 Aug 2013 17:57:14 +0000 (17:57 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5755 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs

index e8abd4b576e8be2364442715ae93933272e4d41f..de08398bb1d17a3fa9994789b12a1e6bfb3a901c 100644 (file)
@@ -26,6 +26,9 @@ namespace HandBrakeWPF.ViewModels
     /// </summary>\r
     public class FiltersViewModel : ViewModelBase, IFiltersViewModel\r
     {\r
+        /// <summary>\r
+        /// The is deinterlace mode.\r
+        /// </summary>\r
         private bool isDeinterlaceMode;\r
 \r
         #region Constructors and Destructors\r
@@ -236,6 +239,11 @@ namespace HandBrakeWPF.ViewModels
                 // Show / Hide the Custom Control\r
                 this.ShowDeinterlaceCustom = this.CurrentTask.Deinterlace == Deinterlace.Custom;\r
                 this.NotifyOfPropertyChange(() => this.ShowDeinterlaceCustom);\r
+\r
+                if (value != Deinterlace.Off)\r
+                {\r
+                    this.IsDeinterlaceMode = true;\r
+                }\r
             }\r
         }\r
 \r
@@ -262,6 +270,11 @@ namespace HandBrakeWPF.ViewModels
                 // Show / Hide the Custom Control\r
                 this.ShowDecombCustom = this.CurrentTask.Decomb == Decomb.Custom;\r
                 this.NotifyOfPropertyChange(() => this.ShowDecombCustom);\r
+\r
+                if (value != Decomb.Off)\r
+                {\r
+                    this.IsDeinterlaceMode = false;\r
+                }\r
             }\r
         }\r
 \r