Persist ruler layout flag to local storage

This commit is contained in:
Andrey Antukh
2025-06-02 11:43:13 +02:00
parent e13d1743da
commit 25372c3edf
2 changed files with 3 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ A non exhaustive list of changes:
- Add configuration for air gapped installations with Docker - Add configuration for air gapped installations with Docker
- Support system color scheme [Github #5030](https://github.com/penpot/penpot/issues/5030) - Support system color scheme [Github #5030](https://github.com/penpot/penpot/issues/5030)
- Update google fonts (at 2025/05/19) - Update google fonts (at 2025/05/19)
- Persist ruler visibility across files and reloads [GitHub #4586](https://github.com/penpot/penpot/issues/4586)
### :bug: Bugs fixed ### :bug: Bugs fixed
- Fix getCurrentUser for plugins api [Taiga #11057](https://tree.taiga.io/project/penpot/issue/11057) - Fix getCurrentUser for plugins api [Taiga #11057](https://tree.taiga.io/project/penpot/issue/11057)

View File

@@ -141,7 +141,8 @@
storage object. It should be namespace qualified." storage object. It should be namespace qualified."
{:hide-palettes :app.main.data.workspace/hide-palettes? {:hide-palettes :app.main.data.workspace/hide-palettes?
:colorpalette :app.main.data.workspace/show-colorpalette? :colorpalette :app.main.data.workspace/show-colorpalette?
:textpalette :app.main.data.workspace/show-textpalette?}) :textpalette :app.main.data.workspace/show-textpalette?
:rulers :app.main.data.workspace/show-rulers?})
(defn load-layout-flags (defn load-layout-flags
"Given the current layout flags, and updates them with the data "Given the current layout flags, and updates them with the data