mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix(AppUpdater): update condition for checking available updates (#5417)
This commit is contained in:
parent
dd16ad9d67
commit
63870024cc
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user