From a5201942b8817cc1d74fba0ae2c8378632d16fc5 Mon Sep 17 00:00:00 2001 From: Peter Makra <6892971+mcraa@users.noreply.github.com> Date: Tue, 22 Feb 2022 09:50:34 +0100 Subject: [PATCH] patch: clarified update check --- lib/gui/etcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/etcher.ts b/lib/gui/etcher.ts index 62a238bc..34be1a15 100644 --- a/lib/gui/etcher.ts +++ b/lib/gui/etcher.ts @@ -43,7 +43,7 @@ async function checkForUpdates(interval: number) { const release = await autoUpdater.checkForUpdates(); const isOutdated = semver.compare(release.updateInfo.version, version) > 0; - const shouldUpdate = release.updateInfo.stagingPercentage !== 0; // undefinded means 100% + const shouldUpdate = release.updateInfo.stagingPercentage !== 0; // undefinded (default) means 100% if (shouldUpdate && isOutdated) { await autoUpdater.downloadUpdate(); packageUpdated = true;