diff options
author | sr55 <[email protected]> | 2016-02-04 19:06:37 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-02-04 19:06:45 +0000 |
commit | 3053ec908dab32b4da6ce9ec022215087a28a37e (patch) | |
tree | e9b458962356887a5a7aa02b567b72f54ed1b4b5 | |
parent | f28454d46361fea8f914932c1a298466ff8d4d2f (diff) |
WinGui: Fix Video Bitrate Text Box not updating correctly with presets.
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index cbe2726d8..981413a9a 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -17,7 +17,6 @@ namespace HandBrakeWPF.ViewModels using Caliburn.Micro;
- using HandBrake.ApplicationServices.Utilities;
using HandBrake.ApplicationServices.Interop;
using HandBrake.ApplicationServices.Interop.Model.Encoding;
@@ -211,9 +210,9 @@ namespace HandBrakeWPF.ViewModels if (value)
{
this.Task.VideoEncodeRateType = VideoEncodeRateType.ConstantQuality;
- this.Task.TwoPass = false;
- this.Task.TurboFirstPass = false;
- this.Task.VideoBitrate = null;
+ this.TwoPass = false;
+ this.TurboFirstPass = false;
+ this.VideoBitrate = null;
this.NotifyOfPropertyChange(() => this.Task);
}
else
@@ -912,7 +911,9 @@ namespace HandBrakeWPF.ViewModels this.TwoPass = preset.Task.TwoPass;
this.TurboFirstPass = preset.Task.TurboFirstPass;
- this.Task.VideoBitrate = preset.Task.VideoBitrate;
+
+ this.VideoBitrate = preset.Task.VideoEncodeRateType == VideoEncodeRateType.AverageBitrate ? preset.Task.VideoBitrate : null;
+
this.NotifyOfPropertyChange(() => this.Task);
|