fix: second settings can't be opened

close #2254
This commit is contained in:
Tienson Qin
2021-06-22 23:51:40 +08:00
parent 300895950f
commit 186a4c8b27
4 changed files with 24 additions and 22 deletions

View File

@@ -1235,6 +1235,14 @@
[]
(toggle! :ui/settings-open?))
(defn close-settings!
[]
(set-state! :ui/settings-open? false))
(defn open-settings!
[]
(set-state! :ui/settings-open? true))
;; TODO: Move those to the uni `state`
(defonce editor-op (atom nil))