From 0db4fa3ac171c254a8611a9de1eba93e91346388 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 8 Sep 2012 17:54:15 +0000 Subject: WinGui: Hide the Debug Menu behind an option. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4939 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs') 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 /// private int serverPort; + /// + /// The server port. + /// + private bool enableDebugFeatures; + #endregion #region Constructors and Destructors @@ -1353,6 +1358,22 @@ namespace HandBrakeWPF.ViewModels } } + /// + /// Enable Debugging features in the UI. + /// + 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(UserSettingConstants.ServerPort), out port); this.ServerPort = port; this.EnableProcessIsolation = userSettingService.GetUserSetting(UserSettingConstants.EnableProcessIsolation); + this.EnableDebugFeatures = userSettingService.GetUserSetting(UserSettingConstants.EnableDebugFeatures); } /// @@ -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); } /// -- cgit v1.2.3