Updater: fix network errors triggering popups (#3436)

This commit is contained in:
Vending Machine 2025-06-07 00:46:49 +02:00 committed by GitHub
parent 9430803f36
commit 47856a26f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 98 additions and 55 deletions

View file

@ -134,7 +134,11 @@ async function init() {
if (!IS_WEB && !IS_UPDATER_DISABLED) {
runUpdateCheck();
setInterval(runUpdateCheck, 1000 * 60 * 30); // 30 minutes
// this tends to get really annoying, so only do this if the user has auto-update without notification enabled
if (Settings.autoUpdate && !Settings.autoUpdateNotification) {
setInterval(runUpdateCheck, 1000 * 60 * 30); // 30 minutes
}
}
if (IS_DEV) {