Browse Source

enhance: add createDirectory and promptToCreate

Tienson Qin 4 years ago
parent
commit
36c1884da2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/electron/electron/handler.cljs

+ 1 - 1
src/electron/electron/handler.cljs

@@ -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"