1
0
Fork 0

- [GUI] added a better default directory when chosing a certificate file for import.

This commit is contained in:
cage 2023-03-25 16:19:19 +01:00
parent c74f501225
commit 3da987012c
1 changed files with 4 additions and 4 deletions

View File

@ -96,12 +96,12 @@
(defun on-file-choosen-clsr (entry parent &optional (initial-dir nil))
(lambda ()
(when (gui:text (certificate-entry parent))
(when (string-not-empty-p (gui:text (certificate-entry parent)))
(setf initial-dir (fs:parent-dir-path (gui:text (certificate-entry parent)))))
(let ((file-path (gui:get-open-file :initial-dir initial-dir
:parent parent
:multiple nil
:title (_ "Choose the file"))))
:parent parent
:multiple nil
:title (_ "Choose the file"))))
(setf (gui:text entry) file-path))))
(defun import-certificate-clsr (import-window certificate-frame)