Skip to content

Commit

Permalink
fix: downloading update toast now showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
NoCrypt committed Aug 15, 2024
1 parent c89651f commit d402852
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions electron/src/main/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ autoUpdater.autoDownload = false
ipcMain.on('update', async () => {
await autoUpdater.checkForUpdates()
})
ipcMain.on('update-download', async () => {
await autoUpdater.downloadUpdate()
})

// ipcMain.on('quit-and-install') is on electron/src/main/app.js#L138

Expand All @@ -34,6 +31,10 @@ export default class Updater {
this.hasUpdate = true
window.webContents.send('update-downloaded', true)
})
ipcMain.on('update-download', async () => {
await autoUpdater.downloadUpdate()
window.webContents.send('update-downloading', true)
})
}

install (forceRunAfter = false) {
Expand Down

0 comments on commit d402852

Please sign in to comment.