1
0
Fork 0

- used an error message instead of a notification when opening a file that does not exists (thanks op\!).

This commit is contained in:
cage 2021-11-12 20:27:11 +01:00
parent ebddc9e1e6
commit 01eef29432
1 changed files with 11 additions and 9 deletions

View File

@ -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) ())