mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed #28
This commit is contained in:
parent
7f71249c4e
commit
86656d85ca
1 changed files with 20 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
using IWshRuntimeLibrary;
|
using IWshRuntimeLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
@ -438,7 +438,25 @@ private void CheckForUpdates(bool autoCheck)
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
return;
|
if (autoCheck)
|
||||||
|
{
|
||||||
|
mainMenu.Invoke((Action)delegate
|
||||||
|
{
|
||||||
|
using (new CenterWinDialog(this))
|
||||||
|
{
|
||||||
|
if (statusPanel.Visible)
|
||||||
|
{
|
||||||
|
StatusPanelMessage("update-failed");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("Checking for updates failed:\nConnection lost or the server is busy.", PublicVar.appName, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue