mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-20 08:02:12 +00:00
fix: downloading update toast now showing up
This commit is contained in:
parent
c89651fbbc
commit
d4028526c1
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue