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
This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-03-03 22:31:45 -08:00
1 parent 3cffdce1c1
commit 2fd4e06b34
1 file changed
+1 -5
+1 -5
View File
@@ -577,11 +577,7 @@ function shouldEnableAutoUpdates(): boolean {
async function checkForUpdates(reason: string): Promise<void> {
if (isQuitting || !updaterConfigured || updateCheckInFlight) return;
if (
updateState.status === "downloading" ||
updateState.status === "downloaded" ||
updateState.status === "available"
) {
if (updateState.status === "downloading" || updateState.status === "downloaded") {
console.info(
`[desktop-updater] Skipping update check (${reason}) while status=${updateState.status}.`,
);