diff --git a/lib/auto-updater.js b/lib/auto-updater.js index b127bd8e..3093cebb 100644 --- a/lib/auto-updater.js +++ b/lib/auto-updater.js @@ -15,7 +15,7 @@ module.exports = ({ log }) => { autoUpdater.on('update-available', () => log('update available, downloading…')) autoUpdater.on('update-not-available', () => log('update not available')) autoUpdater.on('download-progress', p => log('download progress ' + p.percent)) - autoUpdater.on('update-downloaded', (ev, notes, version) => { + autoUpdater.once('update-downloaded', (ev, notes, version) => { log('update downloaded') dialog.showMessageBox({