From f02bf0d2bc5035f74488585c5909a65c875f671d Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 10 Apr 2015 21:13:16 +0000 Subject: WinGui: When Switching from x264 to another encoder, the video tab options would be disabled if "Use Advanced Tab" was turned on. This is now fixed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7082 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 14ff6cd70..6d72d0590 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -1160,6 +1160,11 @@ namespace HandBrakeWPF.ViewModels /// private void HandleEncoderChange(VideoEncoder selectedEncoder) { + if (selectedEncoder != VideoEncoder.X264) + { + this.UseAdvancedTab = false; + } + HBVideoEncoder encoder = HandBrakeEncoderHelpers.VideoEncoders.FirstOrDefault(s => s.ShortName == EnumHelper.GetShortName(selectedEncoder)); if (encoder != null) { -- cgit v1.2.3