File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3131 (when-not (empty? (dom/val me))
3232 (object/raise this :open! (dom/val me))))))
3333
34- (defui save-input [this]
35- [:input {:type " file" :nwsaveas true }]
34+ (defui save-input [this path ]
35+ [:input {:type " file" :nwsaveas ( or path true ) }]
3636 :change (fn []
3737 (this-as me
3838 (when-not (empty? (dom/val me))
5959(behavior ::transient-save
6060 :triggers #{:save :save-as-rename! }
6161 :reaction (fn [this]
62- (let [s (save-input this)]
62+ (let [s (save-input this ( files/home ) )]
6363 (set! active-dialog s)
6464 (dom/trigger s :click ))))
6565
6666(behavior ::save-as-rename!
6767 :triggers #{:save-as-rename! }
6868 :reaction (fn [this]
69- (dom/trigger (save-input this) :click )))
69+ (dom/trigger (save-input this ( -> @this :info :path ) ) :click )))
7070
7171(behavior ::save-as
7272 :triggers #{:save-as! }
You can’t perform that action at this time.
0 commit comments