summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-09-21 17:54:33 +0000
committersr55 <[email protected]>2013-09-21 17:54:33 +0000
commit8bccfabca28d059978f1eb8e516592f4e2f06c1a (patch)
tree56d30dd1575c01d34cfbb53e8f0512c97683f1ca /win/CS/HandBrakeWPF/ViewModels
parent515f8070a43f25de58019314bf6893c12a478c76 (diff)
WinGui: Remove now unneeded debug menu
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5791 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs5
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs11
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs25
3 files changed, 6 insertions, 35 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs
index 67dcf4c09..0d176b7b7 100644
--- a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IMainViewModel.cs
@@ -84,5 +84,10 @@ namespace HandBrakeWPF.ViewModels.Interfaces
/// Shutdown this View
/// </summary>
void Shutdown();
+
+ /// <summary>
+ /// The show cli query.
+ /// </summary>
+ void ShowCliQuery();
}
} \ No newline at end of file
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index de6d7c063..819609f20 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -627,17 +627,6 @@ namespace HandBrakeWPF.ViewModels
}
/// <summary>
- /// Gets a value indicating whether show debug menu.
- /// </summary>
- public bool ShowDebugMenu
- {
- get
- {
- return this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableDebugFeatures);
- }
- }
-
- /// <summary>
/// Gets or sets the cancel scan command.
/// </summary>
public CancelScanCommand CancelScanCommand { get; set; }
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
index 79d5f5675..1ad006447 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -334,11 +334,6 @@ namespace HandBrakeWPF.ViewModels
private int serverPort;
/// <summary>
- /// The server port.
- /// </summary>
- private bool enableDebugFeatures;
-
- /// <summary>
/// Backing field for EnableLibHb
/// </summary>
private bool enableLibHb;
@@ -1362,22 +1357,6 @@ namespace HandBrakeWPF.ViewModels
}
/// <summary>
- /// Gets or sets a value indicating whether debug features are enabled.
- /// </summary>
- public bool EnableDebugFeatures
- {
- get
- {
- return this.enableDebugFeatures;
- }
- set
- {
- this.enableDebugFeatures = value;
- this.NotifyOfPropertyChange(() => this.EnableDebugFeatures);
- }
- }
-
- /// <summary>
/// Gets or sets a value indicating whether enable lib hb.
/// </summary>
public bool EnableLibHb
@@ -1709,7 +1688,6 @@ 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);
this.EnableLibHb = userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableLibHb);
}
@@ -1928,8 +1906,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);
+ userSettingService.SetUserSetting(UserSettingConstants.ServerPort, this.ServerPort.ToString(CultureInfo.InvariantCulture));
userSettingService.SetUserSetting(UserSettingConstants.EnableLibHb, this.EnableLibHb);
}