fix: flow app updater manual check from native menu (#4731)
This commit is contained in:
parent
b990b259bc
commit
99f324286b
@ -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(
|
||||
|
||||
@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user