mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Allow config window to be closed with meta-W
window.confirmClose() should close the window immediately when there is no rootView which is the case in the config window.
This commit is contained in:
@@ -263,4 +263,7 @@ window.profile = (description, fn) ->
|
||||
|
||||
# Public: Shows a dialog asking if the window was _really_ meant to be closed.
|
||||
confirmClose = ->
|
||||
rootView.confirmClose().done -> window.close()
|
||||
if rootView?
|
||||
rootView.confirmClose().done -> window.close()
|
||||
else
|
||||
window.close()
|
||||
|
||||
Reference in New Issue
Block a user