Avoid saving state when closing windows due to auto-update

This commit is contained in:
Max Brunsfeld
2015-06-11 12:51:36 -07:00
parent 5651a7cfc3
commit 844cfcb7ae

View File

@@ -186,7 +186,10 @@ class AtomApplication
@on 'application:report-issue', -> require('shell').openExternal('https://github.com/atom/atom/blob/master/CONTRIBUTING.md#submitting-issues')
@on 'application:search-issues', -> require('shell').openExternal('https://github.com/issues?q=+is%3Aissue+user%3Aatom')
@on 'application:install-update', => @autoUpdateManager.install()
@on 'application:install-update', =>
@quitting = true
@autoUpdateManager.install()
@on 'application:check-for-update', => @autoUpdateManager.check()
if process.platform is 'darwin'