summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-09-08 17:54:15 +0000
committersr55 <[email protected]>2012-09-08 17:54:15 +0000
commit0db4fa3ac171c254a8611a9de1eba93e91346388 (patch)
treecdea34d4e7a29f072b7895b07e2bc3a85138bc72 /win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
parentd5bcce8f440245352742d35422fe913eb013bbbd (diff)
WinGui: Hide the Debug Menu behind an option.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4939 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 963abdf60..7b65a5ef8 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -349,6 +349,11 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
private int serverPort;
+ /// <summary>
+ /// The server port.
+ /// </summary>
+ private bool enableDebugFeatures;
+
#endregion
#region Constructors and Destructors
@@ -1353,6 +1358,22 @@ namespace HandBrakeWPF.ViewModels
}
}
+ /// <summary>
+ /// Enable Debugging features in the UI.
+ /// </summary>
+ public bool EnableDebugFeatures
+ {
+ get
+ {
+ return this.enableDebugFeatures;
+ }
+ set
+ {
+ this.enableDebugFeatures = value;
+ this.NotifyOfPropertyChange(() => this.EnableDebugFeatures);
+ }
+ }
+
#endregion
#endregion
@@ -1648,6 +1669,7 @@ namespace HandBrakeWPF.ViewModels
int.TryParse(userSettingService.GetUserSetting<string>(UserSettingConstants.ServerPort), out port);
this.ServerPort = port;
this.EnableProcessIsolation = userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableProcessIsolation);
+ this.EnableDebugFeatures = userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableDebugFeatures);
}
/// <summary>
@@ -1864,6 +1886,7 @@ namespace HandBrakeWPF.ViewModels
userSettingService.SetUserSetting(ASUserSettingConstants.DisableLibDvdNav, this.DisableLibdvdNav);
userSettingService.SetUserSetting(UserSettingConstants.EnableProcessIsolation, this.EnableProcessIsolation);
userSettingService.SetUserSetting(UserSettingConstants.ServerPort, this.ServerPort.ToString());
+ userSettingService.SetUserSetting(UserSettingConstants.EnableDebugFeatures, this.EnableDebugFeatures);
}
/// <summary>