Show message box if ShareX is up to date

This commit is contained in:
Jaex 2023-03-16 07:38:37 +03:00
parent 61be95d5e8
commit 2ff7edbd2f

View file

@ -1880,7 +1880,15 @@ public static async Task DownloadDevBuild()
await updateChecker.CheckUpdateAsync(); await updateChecker.CheckUpdateAsync();
UpdateMessageBox.Start(updateChecker, true); if (updateChecker.Status == UpdateStatus.UpdateAvailable)
{
UpdateMessageBox.Start(updateChecker);
}
else if (updateChecker.Status == UpdateStatus.UpToDate)
{
// TODO: Translate
MessageBox.Show("ShareX is up to date!", "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
} }
public static async Task DownloadAppVeyorBuild() public static async Task DownloadAppVeyorBuild()
@ -1894,7 +1902,7 @@ public static async Task DownloadAppVeyorBuild()
await updateChecker.CheckUpdateAsync(); await updateChecker.CheckUpdateAsync();
UpdateMessageBox.Start(updateChecker, true); UpdateMessageBox.Start(updateChecker);
} }
public static Image CreateQRCode(string text, int width, int height) public static Image CreateQRCode(string text, int width, int height)