mirror of
https://github.com/penpot/penpot.git
synced 2026-05-05 08:08:27 +00:00
Set proper default flags on workspace.
And don't reset them on page change.
This commit is contained in:
parent
16d2cbd381
commit
a7236c17f2
@ -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…
x
Reference in New Issue
Block a user