mirror of https://codeberg.org/cage/tinmop/
- [GUI] used file extension for filtering candidates file when saving a link's contents.
This commit is contained in:
parent
6a601209a3
commit
e28cffe2f3
|
@ -481,8 +481,17 @@
|
|||
(funcall (link-click-mouse-1-callback-clsr link-value main-window)))))
|
||||
(save-link-as-callback ()
|
||||
(a:when-let* ((suggested-file-name (fs:path-last-element link-value))
|
||||
(extension (fs:get-extension suggested-file-name))
|
||||
(extensions-mask (list (list (format nil
|
||||
(_ "Files ~s")
|
||||
extension)
|
||||
(format nil
|
||||
"*~a"
|
||||
extension))
|
||||
'("All Files" "*")))
|
||||
(output-file (gui:get-save-file :initial-file suggested-file-name
|
||||
:initial-dir "."
|
||||
:file-types extensions-mask
|
||||
:parent main-window
|
||||
:title (_ "Choose a file for saving")))
|
||||
(input-file (when (string-not-empty-p output-file)
|
||||
|
|
Loading…
Reference in New Issue