This commit is contained in:
Andrew Gundersen 2021-04-15 11:29:39 -05:00
commit 72b3368b48
2 changed files with 5 additions and 4 deletions

View file

@ -27,12 +27,13 @@ const isDev = require('electron-is-dev');
type: 'info',
buttons: ['Restart', 'Later'],
title: 'Application Update',
message: releaseName,
detail: 'A new version has been downloaded. Restart to update.'
message: 'A new version has been downloaded. Restart to update.'
}
autoUpdater.on('update-downloaded', () => {
autoUpdater.quitAndInstall()
dialog.showMessageBox(dialogConfig).then((returnValue) => {
if (returnValue.response === 0) autoUpdater.quitAndInstall()
})
})
autoUpdater.checkForUpdatesAndNotify()