mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: doom-quit-p when use-dialog-box
I don't know what I was thinking, but I need more sleep.
Amend: 1a0fb88897
This commit is contained in:
@ -20,12 +20,10 @@ Returns t if it is safe to kill this session. Does not prompt if no real buffers
|
|||||||
are open."
|
are open."
|
||||||
(or (not (ignore-errors (doom-real-buffer-list)))
|
(or (not (ignore-errors (doom-real-buffer-list)))
|
||||||
(if use-dialog-box
|
(if use-dialog-box
|
||||||
(pcase (x-popup-dialog
|
(x-popup-dialog
|
||||||
t `("Really quit Emacs?"
|
t `("Really quit Emacs?"
|
||||||
("Quit anyway" . t)
|
("Yes" . t)
|
||||||
("Cancel" . nil)))
|
("Cancel" . nil)))
|
||||||
('quit-anyway t)
|
|
||||||
('cancel nil))
|
|
||||||
(yes-or-no-p (format "%s" (or prompt "Really quit Emacs?"))))
|
(yes-or-no-p (format "%s" (or prompt "Really quit Emacs?"))))
|
||||||
(ignore (message "Aborted"))))
|
(ignore (message "Aborted"))))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user