From 25372c3edf3df2736ff09101a301dd43483d1254 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 2 Jun 2025 11:43:13 +0200 Subject: [PATCH] :sparkles: Persist ruler layout flag to local storage --- CHANGES.md | 1 + frontend/src/app/main/data/workspace/layout.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e6eaef3786..82e46a11dc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -84,6 +84,7 @@ A non exhaustive list of changes: - Add configuration for air gapped installations with Docker - Support system color scheme [Github #5030](https://github.com/penpot/penpot/issues/5030) - 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 - Fix getCurrentUser for plugins api [Taiga #11057](https://tree.taiga.io/project/penpot/issue/11057) diff --git a/frontend/src/app/main/data/workspace/layout.cljs b/frontend/src/app/main/data/workspace/layout.cljs index 89e8a90d8a..2539103d15 100644 --- a/frontend/src/app/main/data/workspace/layout.cljs +++ b/frontend/src/app/main/data/workspace/layout.cljs @@ -141,7 +141,8 @@ storage object. It should be namespace qualified." {:hide-palettes :app.main.data.workspace/hide-palettes? :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 "Given the current layout flags, and updates them with the data