fix(AppUpdater): update condition for checking available updates (#5417)

This commit is contained in:
beyondkmp
2025-04-27 22:22:31 +08:00
committed by GitHub
parent 506af6cfb9
commit 47bde9eb36

View File

@@ -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()