mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Show message box if ShareX is up to date
This commit is contained in:
parent
61be95d5e8
commit
2ff7edbd2f
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue