diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/frmMain.cs | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 1ede6f3b6..e6302a2f3 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -187,15 +187,22 @@ namespace Handbrake {
try
{
- String updateFile = Properties.Settings.Default.updateFile;
- WebClient client = new WebClient();
- String data = client.DownloadString(updateFile);
- String[] versionData = data.Split('\n');
-
- if ((versionData[0] != Properties.Settings.Default.GuiVersion) || (versionData[1] != Properties.Settings.Default.CliVersion))
+ if (Properties.Settings.Default.updateStatus == "Checked")
{
- lbl_update.Visible = true;
- return 1;
+ String updateFile = Properties.Settings.Default.updateFile;
+ WebClient client = new WebClient();
+ String data = client.DownloadString(updateFile);
+ String[] versionData = data.Split('\n');
+
+ if ((versionData[0] != Properties.Settings.Default.GuiVersion) || (versionData[1] != Properties.Settings.Default.CliVersion))
+ {
+ lbl_update.Visible = true;
+ return 1;
+ }
+ else
+ {
+ return 0;
+ }
}
else
{
|