File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 9
9
(def app-key :repath-studio )
10
10
11
11
(def app-name " Repath Studio" )
12
+
13
+ (def mime-type " application/x-repath-studio" )
14
+
15
+ (def default-path " documents" )
Original file line number Diff line number Diff line change 7
7
[config :as config]))
8
8
9
9
(def dialog-options
10
- {:defaultPath (.getPath app " documents " )
10
+ {:defaultPath (.getPath app config/default-path )
11
11
:properties [" multiSelections" ]
12
12
:filters [{:name config/ext
13
13
:extensions [config/ext]}]})
Original file line number Diff line number Diff line change 25
25
[renderer.window.effects :as-alias window.fx]))
26
26
27
27
(def file-picker-options
28
- {:startIn " documents "
29
- :types [{:accept {" application/repath-studio " [ " .rps " ]}}]})
28
+ {:startIn config/default-path
29
+ :types [{:accept {config/mime-type [( str " . " config/ext) ]}}]})
30
30
31
31
(rf/reg-event-db
32
32
::center
You can’t perform that action at this time.
0 commit comments