mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +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 {
|
try {
|
||||||
const update = await this.autoUpdater.checkForUpdates()
|
const update = await this.autoUpdater.checkForUpdates()
|
||||||
if (update?.updateInfo && !this.autoUpdater.autoDownload) {
|
if (update?.isUpdateAvailable && !this.autoUpdater.autoDownload) {
|
||||||
// 如果 autoDownload 为 false,则需要再调用下面的函数触发下
|
// 如果 autoDownload 为 false,则需要再调用下面的函数触发下
|
||||||
// do not use await, because it will block the return of this function
|
// do not use await, because it will block the return of this function
|
||||||
this.autoUpdater.downloadUpdate()
|
this.autoUpdater.downloadUpdate()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user