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:
1 parent
3cffdce1c1
commit
2fd4e06b34
1 file changed
+1
-5
@@ -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}.`,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user