mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03: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:
parent
c3232a463c
commit
78d8485243
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user