mirror of https://codeberg.org/cage/tinmop/
- [gemini] prevent overwriting of TOFU warning by other messages.
This commit is contained in:
parent
378ec7fb96
commit
1c1c94a56a
|
@ -529,7 +529,8 @@
|
||||||
:prompt
|
:prompt
|
||||||
(format nil
|
(format nil
|
||||||
(_ "Host ~s signature changed! This is a potential security risk! Ignore this warning? [y/N] ")
|
(_ "Host ~s signature changed! This is a potential security risk! Ignore this warning? [y/N] ")
|
||||||
host)))))
|
host)
|
||||||
|
:priority program-events:+standard-event-priority+))))
|
||||||
(conditions:not-implemented-error (e)
|
(conditions:not-implemented-error (e)
|
||||||
(ui:notify (format nil (_ "Error: ~a") e)
|
(ui:notify (format nil (_ "Error: ~a") e)
|
||||||
:as-error t))
|
:as-error t))
|
||||||
|
|
|
@ -141,13 +141,15 @@
|
||||||
(defun input-dialog-immediate (message)
|
(defun input-dialog-immediate (message)
|
||||||
(windows:make-input-dialog *main-window* *main-window* message))
|
(windows:make-input-dialog *main-window* *main-window* message))
|
||||||
|
|
||||||
(defun error-message (message)
|
(defun error-message (message &optional (priority +standard-event-priority+))
|
||||||
(let ((event (make-instance 'error-message-event
|
(let ((event (make-instance 'error-message-event
|
||||||
|
:priority priority
|
||||||
:payload message)))
|
:payload message)))
|
||||||
(push-event event)))
|
(push-event event)))
|
||||||
|
|
||||||
(defun info-message (message)
|
(defun info-message (message &optional (priority +standard-event-priority+))
|
||||||
(let ((event (make-instance 'info-message-event
|
(let ((event (make-instance 'info-message-event
|
||||||
|
:priority priority
|
||||||
:payload message)))
|
:payload message)))
|
||||||
(push-event event)))
|
(push-event event)))
|
||||||
|
|
||||||
|
@ -360,7 +362,7 @@ Metadata includes:
|
||||||
(setf (windows:in-focus win) nil))
|
(setf (windows:in-focus win) nil))
|
||||||
(windows:draw-all)
|
(windows:draw-all)
|
||||||
(when info-change-focus-message
|
(when info-change-focus-message
|
||||||
(info-message info-change-focus-message)))
|
(info-message info-change-focus-message +maximum-event-priority+)))
|
||||||
|
|
||||||
(defmacro gen-focus-to-window (function-suffix window-get-focus
|
(defmacro gen-focus-to-window (function-suffix window-get-focus
|
||||||
&key
|
&key
|
||||||
|
|
Loading…
Reference in New Issue