Have the confirm on close also apply to quitting kitty

Use a dedicated API for handling quit requests on macOS rather than a
quit canary. Also create a mappable "quit" action for all platforms.
This commit is contained in:
Kovid Goyal
2020-05-18 16:06:40 +05:30
parent 1cf0a8b78e
commit 707cb37212
13 changed files with 116 additions and 64 deletions

View File

@@ -781,6 +781,8 @@ Note that this does not currently work on Wayland.
o('confirm_os_window_close', 0, option_type=positive_int, long_text=_('''
Ask for confirmation when closing an OS window that has at least this
number of kitty windows in it. A value of zero disables confirmation.
This confirmation also applies to requests to quit the entire application (all
OS windows, via the quite action).
'''))
# }}}