fix: flow app updater manual check from native menu (#4731)

This commit is contained in:
Faisal Amir 2025-02-25 13:45:45 +07:00 committed by GitHub
parent b990b259bc
commit 99f324286b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 11 deletions

View File

@ -25,14 +25,6 @@ export function handleAppUpdates() {
)
})
/* New Update Not Available */
autoUpdater.on('update-not-available', async (_info: UpdateInfo) => {
windowManager.mainWindow?.webContents.send(
AppEvent.onAppUpdateNotAvailable,
{}
)
})
/* App Update Completion Message */
autoUpdater.on('update-downloaded', async (_info: UpdateDownloadedEvent) => {
windowManager.mainWindow?.webContents.send(

View File

@ -28,9 +28,10 @@ const template: (Electron.MenuItemConstructorOptions | Electron.MenuItem)[] = [
!updateCheckResult?.updateInfo ||
updateCheckResult?.updateInfo.version === app.getVersion()
) {
dialog.showMessageBox({
message: `No updates available.`,
})
windowManager.mainWindow?.webContents.send(
AppEvent.onAppUpdateNotAvailable,
{}
)
return
}
})