diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 74ac53a85..7c14e1594 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -101,6 +101,8 @@ namespace HandBrakeWPF.ViewModels #region Public Properties
+ public IUserSettingService UserSettingService => this.userSettingService;
+
/// <summary>
/// Gets or sets the current Encode Task.
/// </summary>
@@ -530,17 +532,6 @@ namespace HandBrakeWPF.ViewModels }
}
- private void HandleRFChange()
- {
- double displayRF = this.DisplayRF;
- if (displayRF > this.QualityMax || displayRF < this.QualityMin)
- {
- displayRF = this.qualityMax / 2;
- }
-
- this.SetRF(displayRF);
- }
-
/// <summary>
/// Gets or sets a value indicating whether ShowPeakFramerate.
/// </summary>
@@ -1279,6 +1270,7 @@ namespace HandBrakeWPF.ViewModels if (e.Key == UserSettingConstants.ShowAdvancedTab)
{
this.NotifyOfPropertyChange(() => this.IsAdvancedTabOptionEnabled);
+ this.NotifyOfPropertyChange(() => this.VideoEncoders);
}
}
@@ -1507,5 +1499,16 @@ namespace HandBrakeWPF.ViewModels string result;
this.ExtraArguments = this.encoderOptions.TryGetValue(EnumHelper<VideoEncoder>.GetShortName(selectedEncoder), out result) ? result : string.Empty;
}
+
+ private void HandleRFChange()
+ {
+ double displayRF = this.DisplayRF;
+ if (displayRF > this.QualityMax || displayRF < this.QualityMin)
+ {
+ displayRF = this.qualityMax / 2;
+ }
+
+ this.SetRF(displayRF);
+ }
}
}
\ No newline at end of file |