From d041e684bd5b3bad9e135913e783ea5b607f3b5b Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Tue, 28 Mar 2017 09:41:40 +0200 Subject: [PATCH] auto-updater: only ask once. fixes #317 --- lib/auto-updater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({