diff --git a/src/electron/autoUpdates.ts b/src/electron/autoUpdates.ts index 468535b39..8ccfaacbb 100644 --- a/src/electron/autoUpdates.ts +++ b/src/electron/autoUpdates.ts @@ -64,13 +64,11 @@ async function checkForUpdates(): Promise { if (await shouldPerformAutoUpdate()) { if (getIsAutoUpdateEnabled()) { autoUpdater.checkForUpdates(); - - return; + } else { + BrowserWindow.getAllWindows().forEach((window) => { + window.webContents.send(ElectronEvent.UPDATE_AVAILABLE); + }); } - - BrowserWindow.getAllWindows().forEach((window) => { - window.webContents.send(ElectronEvent.UPDATE_AVAILABLE); - }); } await pause(CHECK_UPDATE_INTERVAL);