1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2024-12-18 23:22:52 +01:00

- fixed crash when trying to submit an empty string to: 'change-folder'.

This commit is contained in:
cage 2024-05-04 14:31:36 +02:00
parent deba731a59
commit 1865be4bf8

View File

@ -830,16 +830,16 @@ along the focused window."
"Change folder"
(flet ((on-input-complete (new-folder)
(db-utils:with-ready-database (:connect nil)
(let ((refresh-event (make-instance 'refresh-thread-windows-event
:new-folder new-folder))
(folder-exists-p (db:folder-exists-p new-folder)))
(if (string-not-empty-p new-folder)
(if (string-not-empty-p new-folder)
(let ((refresh-event (make-instance 'refresh-thread-windows-event
:new-folder new-folder))
(folder-exists-p (db:folder-exists-p new-folder)))
(if folder-exists-p
(push-event refresh-event)
(error-message (format nil
(_ "Folder ~s does not exists")
new-folder)))
(error-message (_ "No folder specified")))))))
new-folder))))
(error-message (_ "No folder specified"))))))
(ask-string-input #'on-input-complete
:prompt (_ "Change folder: ")
:complete-fn #'complete:folder-complete)))