This commit is contained in:
Alexander 2019-09-28 22:14:24 +03:00
parent 7f71249c4e
commit 86656d85ca

View file

@ -1,4 +1,4 @@
using IWshRuntimeLibrary;
using IWshRuntimeLibrary;
using System;
using System.ComponentModel;
using System.Diagnostics;
@ -438,7 +438,25 @@ private void CheckForUpdates(bool autoCheck)
}
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);
}
}
});
}
}
}
}
}