Remember token section open/close state

This commit is contained in:
Akshay Gupta 2024-05-21 16:52:47 +05:30
parent 162e7b6c58
commit eca1334266
2 changed files with 15 additions and 4 deletions

View file

@ -155,6 +155,13 @@
shape-after-token-3-is-applied)
nil)
(defn set-token-type-section-open
[token-type open?]
(ptk/reify ::set-token-type-section-open
ptk/UpdateEvent
(update [_ state]
(assoc-in state [:workspace-tokens :open-status token-type] open?))))
;; Token Context Menu Functions -------------------------------------------------
(defn show-token-context-menu