mirror of https://codeberg.org/cage/tinmop/
- used an error message instead of a notification when opening a file that does not exists (thanks op\!).
This commit is contained in:
parent
ebddc9e1e6
commit
01eef29432
|
@ -1204,6 +1204,7 @@
|
|||
(ui:add-links-to-tour local-links)
|
||||
(gemini-viewer:push-url-to-history window local-path)))
|
||||
(t
|
||||
(handler-case
|
||||
(let* ((file-string (fs:slurp-file local-path))
|
||||
(parent-dir (fs:parent-dir-path local-path))
|
||||
(event (make-instance 'gemini-display-data-page
|
||||
|
@ -1212,7 +1213,8 @@
|
|||
:payload file-string)))
|
||||
(let ((*process-events-immediately* t))
|
||||
(push-event event))
|
||||
(gemini-viewer:push-url-to-history window local-path))))))))
|
||||
(gemini-viewer:push-url-to-history window local-path))
|
||||
(error (e) (ui:error-message (format nil "~a" e))))))))))
|
||||
|
||||
(defclass gemini-back-event (program-event) ())
|
||||
|
||||
|
|
Loading…
Reference in New Issue