From 63870024cc31db853948fa9ce6d6c4e6abc7487a Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Sun, 27 Apr 2025 22:22:31 +0800 Subject: [PATCH] fix(AppUpdater): update condition for checking available updates (#5417) --- src/main/services/AppUpdater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/AppUpdater.ts b/src/main/services/AppUpdater.ts index 8e2c1deddd..560c73d6e4 100644 --- a/src/main/services/AppUpdater.ts +++ b/src/main/services/AppUpdater.ts @@ -71,7 +71,7 @@ export default class AppUpdater { try { const update = await this.autoUpdater.checkForUpdates() - if (update?.updateInfo && !this.autoUpdater.autoDownload) { + if (update?.isUpdateAvailable && !this.autoUpdater.autoDownload) { // 如果 autoDownload 为 false,则需要再调用下面的函数触发下 // do not use await, because it will block the return of this function this.autoUpdater.downloadUpdate()