From 203603f5baca70f2a372c4c834df79d693cfaca6 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 10 Apr 2015 21:01:49 +0000 Subject: [PATCH] [0.10.x] WinGui: For default user presets, make sure the advanced tab shows correctly on load when enabled. git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7080 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs index 94d425c7e..7bebd9c1e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/X264ViewModel.cs @@ -942,6 +942,12 @@ namespace HandBrakeWPF.ViewModels this.Task = task; this.Task.PropertyChanged += this.Task_PropertyChanged; this.AdvancedOptionsString = preset.Task.AdvancedEncoderOptions; + + if (task.ShowAdvancedTab && task.VideoEncoder == VideoEncoder.X264) + { + this.ShowX264AdvancedOptions = true; + this.NotifyOfPropertyChange(() => ShowX264AdvancedOptions); + } } /// -- 2.40.0