summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-01-14 18:46:17 +0000
committersr55 <[email protected]>2012-01-14 18:46:17 +0000
commit01c8ab3532c0c30748fd3e7a0376e3f32928c72f (patch)
tree84778f7508a83d66ee229d142f5478f29a6d25a7 /win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
parente5d16119f267eca2d9e294541aa6e9307c021d19 (diff)
WinGui: Add an option to hide the Allowed Passthru checkboxes. (Hidden by default). Fixed an issue where the ScannedTrack was getting overwritten when switching between presets.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4407 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
index dc536855e..4a9dd8aa4 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -304,6 +304,11 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
private BindingList<string> selectedLangauges = new BindingList<string>();
+ /// <summary>
+ /// The backing field for show advanced passthru options for Audio
+ /// </summary>
+ private bool showAdvancedPassthruOpts;
+
#endregion
#region Constructors and Destructors
@@ -875,6 +880,22 @@ namespace HandBrakeWPF.ViewModels
}
}
+ /// <summary>
+ /// Gets or sets a value indicating whether ShowAdvancedPassthruOpts.
+ /// </summary>
+ public bool ShowAdvancedPassthruOpts
+ {
+ get
+ {
+ return this.showAdvancedPassthruOpts;
+ }
+ set
+ {
+ this.showAdvancedPassthruOpts = value;
+ this.NotifyOfPropertyChange(() => this.ShowAdvancedPassthruOpts);
+ }
+ }
+
#endregion
#region System and Logging
@@ -1375,6 +1396,7 @@ namespace HandBrakeWPF.ViewModels
this.addOnlyOneAudioTrackPerLanguage = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.AddOnlyOneAudioPerLanguage);
this.addClosedCaptions = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.UseClosedCaption);
+ this.showAdvancedPassthruOpts = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ShowAdvancedAudioPassthruOpts);
// #############################
// CLI
@@ -1640,6 +1662,7 @@ namespace HandBrakeWPF.ViewModels
this.userSettingService.SetUserSetting(UserSettingConstants.UseClosedCaption, this.AddClosedCaptions);
this.userSettingService.SetUserSetting(UserSettingConstants.DubModeAudio, this.SelectedAddAudioMode);
this.userSettingService.SetUserSetting(UserSettingConstants.DubModeSubtitle, this.SelectedAddSubtitleMode);
+ this.userSettingService.SetUserSetting(UserSettingConstants.ShowAdvancedAudioPassthruOpts, this.ShowAdvancedPassthruOpts);
/* System and Logging */
userSettingService.SetUserSetting(ASUserSettingConstants.ProcessPriority, this.SelectedPriority);