mirror of https://codeberg.org/cage/tinmop/
- [GUI] added a better default directory when chosing a certificate file for import.
This commit is contained in:
parent
c74f501225
commit
3da987012c
|
@ -96,12 +96,12 @@
|
||||||
|
|
||||||
(defun on-file-choosen-clsr (entry parent &optional (initial-dir nil))
|
(defun on-file-choosen-clsr (entry parent &optional (initial-dir nil))
|
||||||
(lambda ()
|
(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)))))
|
(setf initial-dir (fs:parent-dir-path (gui:text (certificate-entry parent)))))
|
||||||
(let ((file-path (gui:get-open-file :initial-dir initial-dir
|
(let ((file-path (gui:get-open-file :initial-dir initial-dir
|
||||||
:parent parent
|
:parent parent
|
||||||
:multiple nil
|
:multiple nil
|
||||||
:title (_ "Choose the file"))))
|
:title (_ "Choose the file"))))
|
||||||
(setf (gui:text entry) file-path))))
|
(setf (gui:text entry) file-path))))
|
||||||
|
|
||||||
(defun import-certificate-clsr (import-window certificate-frame)
|
(defun import-certificate-clsr (import-window certificate-frame)
|
||||||
|
|
Loading…
Reference in New Issue