From ca72b802acbd2d7206d6e2278a55d5735f71a79e Mon Sep 17 00:00:00 2001 From: Wliu <50Wliu@users.noreply.github.com> Date: Sun, 7 Jun 2015 11:23:42 -0400 Subject: [PATCH] Enable "Downloading Update" context menu entry Previously 'update-downloaded' would get emitted right after 'update-available' which would suppress the "Downloading Update" menu entry --- src/browser/auto-updater-win32.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/browser/auto-updater-win32.coffee b/src/browser/auto-updater-win32.coffee index 89018a396..d1ed277e2 100644 --- a/src/browser/auto-updater-win32.coffee +++ b/src/browser/auto-updater-win32.coffee @@ -14,6 +14,8 @@ class AutoUpdater require('auto-updater').quitAndInstall() downloadUpdate: (callback) -> + @emit 'update-available' + SquirrelUpdate.spawn ['--download', @updateUrl], (error, stdout) -> return callback(error) if error? @@ -56,7 +58,6 @@ class AutoUpdater @emit 'update-not-available' return - @emit 'update-available' @emit 'update-downloaded', {}, update.releaseNotes, update.version, new Date(), 'https://atom.io', => @quitAndInstall() module.exports = new AutoUpdater()