fix: can't open new graph on Linux

close #3202
This commit is contained in:
Tienson Qin
2021-11-19 13:38:17 +08:00
parent 27ea95d6c8
commit 40b315de6b
3 changed files with 38 additions and 36 deletions

View File

@@ -274,7 +274,7 @@
(defn load-unpacked-plugin
[]
(when util/electron?
(p/let [path (ipc/ipc "openDialogSync")]
(p/let [path (ipc/ipc "openDialog")]
(when-not (:plugin/selected-unpacked-pkg @state/state)
(state/set-state! :plugin/selected-unpacked-pkg path)))))