diff options
author | sr55 <[email protected]> | 2012-10-10 20:22:46 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-10-10 20:22:46 +0000 |
commit | 60f0a6693164d25b21676711835abe8f0e0d40c3 (patch) | |
tree | 2b5117f94ac9144fe73d28009667dd6a0ba9d692 /win/CS/HandBrakeWPF/Services | |
parent | 3bf7a95521abb4d943c978c68f57b30ee197ff43 (diff) |
WinGui: Settings tidyup
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5013 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/UpdateService.cs | 2 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/UpdateVersionService.cs | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/Services/UpdateService.cs b/win/CS/HandBrakeWPF/Services/UpdateService.cs index 2b6cfa852..112493ac7 100644 --- a/win/CS/HandBrakeWPF/Services/UpdateService.cs +++ b/win/CS/HandBrakeWPF/Services/UpdateService.cs @@ -87,7 +87,7 @@ namespace HandBrakeWPF.Services try
{
string url =
- this.userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakePlatform)
+ this.userSettingService.GetUserSetting<string>(UserSettingConstants.HandBrakePlatform)
.Contains("x86_64")
? this.userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_x64)
: this.userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_i686);
diff --git a/win/CS/HandBrakeWPF/Services/UpdateVersionService.cs b/win/CS/HandBrakeWPF/Services/UpdateVersionService.cs index 0472f9da2..e0de1d88a 100644 --- a/win/CS/HandBrakeWPF/Services/UpdateVersionService.cs +++ b/win/CS/HandBrakeWPF/Services/UpdateVersionService.cs @@ -72,7 +72,7 @@ namespace HandBrakeWPF.Services string base64Hash = Convert.ToBase64String(hash);
// Compare the hash with the last known hash. If it's the same, return.
- if (userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeExeHash) == base64Hash)
+ if (userSettingService.GetUserSetting<string>(UserSettingConstants.HandBrakeExeHash) == base64Hash)
{
return;
}
@@ -115,7 +115,7 @@ namespace HandBrakeWPF.Services if (platform.Success)
{
- userSettingService.SetUserSetting(ASUserSettingConstants.HandBrakePlatform, platform.Value.Replace("-", string.Empty).Trim());
+ userSettingService.SetUserSetting(UserSettingConstants.HandBrakePlatform, platform.Value.Replace("-", string.Empty).Trim());
}
if (cliProcess.TotalProcessorTime.Seconds > 10) // Don't wait longer than 10 seconds.
@@ -128,14 +128,14 @@ namespace HandBrakeWPF.Services }
}
- userSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeExeHash, base64Hash);
+ userSettingService.SetUserSetting(UserSettingConstants.HandBrakeExeHash, base64Hash);
}
catch (Exception e)
{
userSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeBuild, string.Empty);
- userSettingService.SetUserSetting(ASUserSettingConstants.HandBrakePlatform, string.Empty);
+ userSettingService.SetUserSetting(UserSettingConstants.HandBrakePlatform, string.Empty);
userSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeVersion, string.Empty);
- userSettingService.SetUserSetting(ASUserSettingConstants.HandBrakeExeHash, string.Empty);
+ userSettingService.SetUserSetting(UserSettingConstants.HandBrakeExeHash, string.Empty);
this.errorService.ShowError("Unable to Initialise HandBrake", "This error is unrecoverable. Maybe try restarting.", e);
|