fix: void-function use-dialog-box-p

This function doesn't exist before Emacs 29, and also isn't meant to be
used in a global context.

Amend: 6a44a2ea80
This commit is contained in:
Henrik Lissner
2025-04-15 17:21:14 -04:00
parent 31afe2c8b0
commit 20c80c461e

View File

@ -19,7 +19,7 @@ If FORCE-P is omitted when `window-size-fixed' is non-nil, resizing will fail."
Returns t if it is safe to kill this session. Does not prompt if no real buffers
are open."
(or (not (ignore-errors (doom-real-buffer-list)))
(if (use-dialog-box-p)
(if use-dialog-box
(pcase (x-popup-dialog
t `("Really quit Emacs?"
("Quit anyway" . t)