enhance(ux): disable file based graph for web

This commit is contained in:
charlie
2024-08-08 16:38:47 +08:00
parent a6004f416d
commit 159c0bf03e
5 changed files with 36 additions and 29 deletions

View File

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