🐛 Clean workspace state on exit or url change

This commit is contained in:
Andrey Antukh 2025-04-09 16:31:49 +02:00
parent 4c77b32171
commit 9ff2160c77
2 changed files with 3 additions and 1 deletions

View file

@ -423,7 +423,8 @@
:workspace-tokens
:workspace-undo)
(update :workspace-global dissoc :read-only?)
(assoc-in [:workspace-global :options-mode] :design)))
(assoc-in [:workspace-global :options-mode] :design)
(update :files d/update-vals #(dissoc % :data))))
ptk/WatchEvent
(watch [_ state _]