summaryrefslogtreecommitdiffstats
path: root/win/CS/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-02-07 21:01:08 +0000
committersr55 <[email protected]>2012-02-07 21:01:08 +0000
commit374164948a157328d1a9f05637aa6b284a0a3e41 (patch)
treed2460f2d1dc833e749c9a0b6e8d8b4551555e469 /win/CS/frmMain.cs
parente5d2f945ba065532c848b3fb4f82d1d2fd8483d9 (diff)
WinGui: Switch to use .i686 and .x86_64 xml appcast files.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4441 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/frmMain.cs')
-rw-r--r--win/CS/frmMain.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/win/CS/frmMain.cs b/win/CS/frmMain.cs
index 6e74c96cb..5ecc41f87 100644
--- a/win/CS/frmMain.cs
+++ b/win/CS/frmMain.cs
@@ -156,9 +156,9 @@ namespace Handbrake
{
// Set when the last update was
this.userSettingService.SetUserSetting(UserSettingConstants.LastUpdateCheckDate, DateTime.Now);
- string url = this.userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild).ToString().EndsWith("1")
- ? userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_unstable)
- : userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast);
+ string url = userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakePlatform).Contains("x86_64")
+ ? userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_x64)
+ : userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_i686);
UpdateService.BeginCheckForUpdates(new AsyncCallback(UpdateCheckDone), false, url, userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild),
userSettingService.GetUserSetting<int>(UserSettingConstants.Skipversion), userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion));
}
@@ -463,9 +463,9 @@ namespace Handbrake
{
lbl_updateCheck.Visible = true;
this.userSettingService.SetUserSetting(UserSettingConstants.LastUpdateCheckDate, DateTime.Now);
- string url = userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild).ToString().EndsWith("1")
- ? userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_unstable)
- : userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast);
+ string url = userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakePlatform).Contains("x86_64")
+ ? userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_x64)
+ : userSettingService.GetUserSetting<string>(UserSettingConstants.Appcast_i686);
UpdateService.BeginCheckForUpdates(new AsyncCallback(UpdateCheckDoneMenu), false,
url, userSettingService.GetUserSetting<int>(ASUserSettingConstants.HandBrakeBuild),
userSettingService.GetUserSetting<int>(UserSettingConstants.Skipversion), userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion));