mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Remove hidden token theme when activating a theme
This commit is contained in:
parent
0ea0834b1a
commit
c5173d2df8
1 changed files with 4 additions and 1 deletions
|
@ -125,8 +125,11 @@
|
|||
active-token-themes (some-> tokens-lib
|
||||
(ctob/toggle-theme-active? group name)
|
||||
(ctob/get-active-theme-paths))
|
||||
active-token-themes' (if (= active-token-themes #{ctob/hidden-token-theme-path})
|
||||
active-token-themes
|
||||
(disj active-token-themes ctob/hidden-token-theme-path))
|
||||
changes (-> (pcb/empty-changes it)
|
||||
(pcb/update-active-token-themes active-token-themes prev-active-token-themes))]
|
||||
(pcb/update-active-token-themes active-token-themes' prev-active-token-themes))]
|
||||
(rx/of
|
||||
(dch/commit-changes changes)
|
||||
(wtu/update-workspace-tokens))))))
|
||||
|
|
Loading…
Reference in a new issue