mirror of https://github.com/logseq/logseq
enhance: add createDirectory and promptToCreate
parent
37fefb9fbf
commit
36c1884da2
|
@ -71,7 +71,7 @@
|
|||
;; TODO: Is it going to be slow if it's a huge directory
|
||||
(defmethod handle :openDir [^js window _messages]
|
||||
(let [result (.showOpenDialogSync dialog (bean/->js
|
||||
{:properties ["openDirectory"]}))
|
||||
{:properties ["openDirectory" "createDirectory" "promptToCreate"]}))
|
||||
path (first result)]
|
||||
(.. ^js window -webContents
|
||||
(send "open-dir-confirmed"
|
||||
|
|
Loading…
Reference in New Issue