]> granicus.if.org Git - handbrake/commitdiff
WinGui: For default user presets, make sure the advanced tab shows correctly on...
authorsr55 <sr55.hb@outlook.com>
Fri, 10 Apr 2015 21:03:46 +0000 (21:03 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 10 Apr 2015 21:03:46 +0000 (21:03 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7081 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs

index 474e43d7eb7750e1de09009655225de79e117158..b82e64c4e13e044cd7f371315b4d08489513a432 100644 (file)
@@ -944,6 +944,12 @@ namespace HandBrakeWPF.ViewModels
             this.Task = task;\r
             this.Task.PropertyChanged += this.Task_PropertyChanged;\r
             this.AdvancedOptionsString = preset.Task.AdvancedEncoderOptions;\r
+\r
+            if (task.ShowAdvancedTab && task.VideoEncoder == VideoEncoder.X264)\r
+            {\r
+                this.ShowX264AdvancedOptions = true;\r
+                this.NotifyOfPropertyChange(() => ShowX264AdvancedOptions);\r
+            }\r
         }\r
 \r
         /// <summary>\r