fix(auto-update): Contrary to all reason, autoUpdater.quitAndInstall does not call before-quit

This commit is contained in:
Ben Gotow 2015-05-26 16:26:21 -07:00
parent f399e76408
commit af357ef005

View file

@ -235,7 +235,10 @@ class Application
@on 'application:send-feedback', => @windowManager.sendToMainWindow('send-feedback')
@on 'application:show-main-window', => @windowManager.ensurePrimaryWindowOnscreen()
@on 'application:check-for-update', => @autoUpdateManager.check()
@on 'application:install-update', => @autoUpdateManager.install()
@on 'application:install-update', =>
@quitting = true
@windowManager.unregisterAllHotWindows()
@autoUpdateManager.install()
@on 'application:open-dev', =>
@devMode = true
@windowManager.closeMainWindow()