mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
Updating - Fix crash when client has internet
Updating - Check for updates periodically and when window opens (if auto-update enabled) Webserver - Don't write wildcard to webserver.txt
This commit is contained in:
1 parent
98b9770250
commit
f829743b6c
9 files changed
+120
-57
No files matched your search
@@ -274,10 +274,20 @@ namespace Artemis.UI.Screens.Settings.Tabs.General
|
||||
return;
|
||||
|
||||
CanOfferUpdatesIfFound = false;
|
||||
bool updateFound = await _updateService.OfferUpdateIfFound();
|
||||
if (!updateFound)
|
||||
_messageService.ShowMessage("You are already running the latest Artemis build. (☞゚ヮ゚)☞");
|
||||
CanOfferUpdatesIfFound = true;
|
||||
try
|
||||
{
|
||||
bool updateFound = await _updateService.OfferUpdateIfFound();
|
||||
if (!updateFound)
|
||||
_messageService.ShowMessage("You are already running the latest Artemis build. (☞゚ヮ゚)☞");
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
_messageService.ShowMessage($"Failed to check for updates: {exception.Message}");
|
||||
}
|
||||
finally
|
||||
{
|
||||
CanOfferUpdatesIfFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnInitialActivate()
|
||||
|
||||
Reference in new issue
Block a user