[Runner]Fix network errors when checking for updates (#26742)

* General: re-implementing network error handling

* Remove unreferenced dead code

* Minor modification in the update procedure. Removing the code part which updates the UI before the real check on new version. UI will be updated after the real check is done.
This commit is contained in:
Laszlo Nemeth
2023-06-14 11:55:55 +02:00
committed by GitHub
parent 293b06d083
commit 2f130bcc62
5 changed files with 28 additions and 82 deletions

View File

@@ -12,7 +12,8 @@ struct UpdateState
upToDate = 0,
errorDownloading = 1,
readyToDownload = 2,
readyToInstall = 3
readyToInstall = 3,
networkError = 4
} state = upToDate;
std::wstring releasePageUrl;
std::optional<std::time_t> githubUpdateLastCheckedDate;