Commit 8adfbe1 1 parent 19f897f commit 8adfbe1 Copy full SHA for 8adfbe1
File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
(defonce electron (js/require " electron" ))
4
4
(def ipc (.-ipcRenderer electron))
5
+ (def shell (.-shell electron))
5
6
6
7
(defn send-to-main [event]
7
8
(.send ipc (:name event) (:arg event)))
Original file line number Diff line number Diff line change 59
59
:download-complete
60
60
(fn [{:keys [db]} [_ {:keys [status path error]}]]
61
61
(case status
62
- " success" {:dispatch [:alert/add {:type :success :msg (str " Completed download: " path)}]}
62
+ " success" {:dispatch [:alert/add {:type :success :msg [:span " Completed download: "
63
+ [:span {:style {:cursor " pointer"
64
+ :text-decoration " underline" }
65
+ :on-click #(.showItemInFolder electron/shell path)}
66
+ path]]}]}
63
67
" error" (do
64
68
(logf :error " Failed to download file %s" error)
65
69
{:dispatch [:alert/add {:type :error :msg " Failed to download" }]}))
You can’t perform that action at this time.
0 commit comments