enhance: add createDirectory and promptToCreate

pull/1477/head
Tienson Qin 2021-03-16 20:23:47 +08:00
parent 37fefb9fbf
commit 36c1884da2
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
;; TODO: Is it going to be slow if it's a huge directory ;; TODO: Is it going to be slow if it's a huge directory
(defmethod handle :openDir [^js window _messages] (defmethod handle :openDir [^js window _messages]
(let [result (.showOpenDialogSync dialog (bean/->js (let [result (.showOpenDialogSync dialog (bean/->js
{:properties ["openDirectory"]})) {:properties ["openDirectory" "createDirectory" "promptToCreate"]}))
path (first result)] path (first result)]
(.. ^js window -webContents (.. ^js window -webContents
(send "open-dir-confirmed" (send "open-dir-confirmed"