authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-03 21:36:29-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-03 22:31:45-08:00
log2fd4e06b345e6edbe12f1de456bb3f057c2b14f0
tree6ab1570402adc3bbfbd6d8e9fdcdffabacb019c9
parent3cffdce1c157bce72fda86a62376810e7c399b71

Allow update checks when status is available

- Stop skipping `checkForUpdates` when updater state is `available` - Continue skipping only while an update is downloading or already downloaded

1 files changed, 1 insertions(+), 5 deletions(-)

apps/desktop/src/main.ts+1-5
...@@ -577,11 +577,7 @@ function shouldEnableAutoUpdates(): boolean {...@@ -577,11 +577,7 @@ function shouldEnableAutoUpdates(): boolean {
577577
578async function checkForUpdates(reason: string): Promise<void> {578async function checkForUpdates(reason: string): Promise<void> {
579 if (isQuitting || !updaterConfigured || updateCheckInFlight) return;579 if (isQuitting || !updaterConfigured || updateCheckInFlight) return;
580 if (580 if (updateState.status === "downloading" || updateState.status === "downloaded") {
581 updateState.status === "downloading" ||
582 updateState.status === "downloaded" ||
583 updateState.status === "available"
584 ) {
585 console.info(581 console.info(
586 `[desktop-updater] Skipping update check (${reason}) while status=${updateState.status}.`,582 `[desktop-updater] Skipping update check (${reason}) while status=${updateState.status}.`,
587 );583 );