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 dd16ad9d67
commit 63870024cc

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