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:
Kevin Sawicki 2013-05-01 08:02:17 -07:00
parent c3232a463c
commit 78d8485243

View File

@ -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()