mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05:00
Only deactivate the RootView once during shutdown
Previously window.shutdown() was called multiple times if window.close() was called since the shutdown handler was also fired in the native window controller. This prevented proper serialization of the RootView from occurring when then window was closed via meta-w or meta-W since it was called a second time when already empty of packages and editors.
This commit is contained in:
@@ -47,7 +47,8 @@ windowAdditions =
|
||||
false
|
||||
|
||||
shutdown: ->
|
||||
@rootView.deactivate()
|
||||
@rootView?.deactivate()
|
||||
@rootView = null
|
||||
$(window).unbind('focus')
|
||||
$(window).unbind('blur')
|
||||
$(window).off('before')
|
||||
|
||||
Reference in New Issue
Block a user