summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-11-28 22:20:42 +0000
committersr55 <[email protected]>2014-11-28 22:20:42 +0000
commit111bcba3edca2b60cbf34fbbe915d1817b06ada1 (patch)
treea5fb5fd4c47a3c00e2dbc5dc8432c2cd9037421b /win/CS/HandBrakeWPF/ViewModels
parentb332cc6dcc28d06f20e81fd44af2e39fba8b80e9 (diff)
WinGui: Remove the CLI Check Helper. Using LibHB to determine version information instead.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6564 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/InstantViewModel.cs3
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs8
2 files changed, 3 insertions, 8 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/InstantViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/InstantViewModel.cs
index 6e0d5e8eb..1eddfd83e 100644
--- a/win/CS/HandBrakeWPF/ViewModels/InstantViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/InstantViewModel.cs
@@ -555,9 +555,6 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
public override void OnLoad()
{
- // Check the CLI Executable.
- CliCheckHelper.CheckCLIVersion();
-
// Perform an update check if required
// this.updateService.PerformStartupUpdateCheck(this.HandleUpdateCheckResults);
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index c6f44e4c6..b7e78739d 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -28,6 +28,7 @@ namespace HandBrakeWPF.ViewModels
using HandBrake.ApplicationServices.Parsing;
using HandBrake.ApplicationServices.Services.Interfaces;
using HandBrake.ApplicationServices.Utilities;
+ using HandBrake.Interop;
using HandBrakeWPF.Commands;
using HandBrakeWPF.Factories;
@@ -1039,9 +1040,6 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
public override void OnLoad()
{
- // Check the CLI Executable.
- CliCheckHelper.CheckCLIVersion();
-
// Perform an update check if required
this.updateService.PerformStartupUpdateCheck(this.HandleUpdateCheckResults);
@@ -1675,7 +1673,7 @@ namespace HandBrakeWPF.ViewModels
return;
}
- if (buildNumber != userSettingService.GetUserSetting<int>(UserSettingConstants.HandBrakeBuild).ToString(CultureInfo.InvariantCulture))
+ if (buildNumber != HandBrakeUtils.Build.ToString(CultureInfo.InvariantCulture))
{
MessageBoxResult result = MessageBox.Show(
Resources.Preset_OldVersion_Message,
@@ -1748,7 +1746,7 @@ namespace HandBrakeWPF.ViewModels
PlistUtility.Export(
savefiledialog.FileName,
this.selectedPreset,
- this.userSettingService.GetUserSetting<int>(UserSettingConstants.HandBrakeBuild).ToString(CultureInfo.InvariantCulture));
+ HandBrakeUtils.Build.ToString(CultureInfo.InvariantCulture));
}
}
else