mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed bug with wrong update messages
This commit is contained in:
parent
4b87b4cfe6
commit
ee36ea1ae6
1 changed files with 11 additions and 13 deletions
|
|
@ -311,21 +311,19 @@ private async Task CheckForUpdates(bool autoCheck)
|
||||||
{
|
{
|
||||||
if (autoCheck)
|
if (autoCheck)
|
||||||
{
|
{
|
||||||
mainMenu.Invoke((Action)delegate
|
using (new CenterWinDialog(this))
|
||||||
{
|
{
|
||||||
using (new CenterWinDialog(this))
|
if (statusPanel.Visible)
|
||||||
{
|
{
|
||||||
if (statusPanel.Visible)
|
StatusPanelMessage("update-failed");
|
||||||
{
|
|
||||||
StatusPanelMessage("update-failed");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
MessageBox.Show(this, "Checking for updates failed:\nConnection lost or the server is busy.", PublicVar.appName,
|
|
||||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show(this, "Checking for updates failed:\nConnection lost or the server is busy.", PublicVar.appName,
|
||||||
|
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue