mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 02:01:39 +02:00
Remember token section open/close state
This commit is contained in:
parent
162e7b6c58
commit
eca1334266
2 changed files with 15 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue