mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
Set proper default flags on workspace.
And don't reset them on page change.
This commit is contained in:
parent
16d2cbd381
commit
a7236c17f2
1 changed files with 1 additions and 3 deletions
|
@ -49,14 +49,12 @@
|
|||
(defrecord Initialize [project-id page-id]
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(let [default-flags #{:sitemap :drawtools :layers :element-options :rules}
|
||||
default-flags #{:document-history}]
|
||||
(let [default-flags #{:sitemap :drawtools :layers :element-options :rules}]
|
||||
(if (:workspace state)
|
||||
(update state :workspace merge
|
||||
{:project project-id
|
||||
:page page-id
|
||||
:selected #{}
|
||||
;; :flags default-flags
|
||||
:drawing nil
|
||||
:drawing-tool nil
|
||||
:tooltip nil})
|
||||
|
|
Loading…
Reference in a new issue