mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -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]
|
(defrecord Initialize [project-id page-id]
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(let [default-flags #{:sitemap :drawtools :layers :element-options :rules}
|
(let [default-flags #{:sitemap :drawtools :layers :element-options :rules}]
|
||||||
default-flags #{:document-history}]
|
|
||||||
(if (:workspace state)
|
(if (:workspace state)
|
||||||
(update state :workspace merge
|
(update state :workspace merge
|
||||||
{:project project-id
|
{:project project-id
|
||||||
:page page-id
|
:page page-id
|
||||||
:selected #{}
|
:selected #{}
|
||||||
;; :flags default-flags
|
|
||||||
:drawing nil
|
:drawing nil
|
||||||
:drawing-tool nil
|
:drawing-tool nil
|
||||||
:tooltip nil})
|
:tooltip nil})
|
||||||
|
|
Loading…
Reference in a new issue