🐛 Fix shortcut error pressing G+W from the View Mode (#6772)

This commit is contained in:
Alejandro Alonso 2025-06-25 14:14:44 +02:00 committed by GitHub
parent 8e8b2acddd
commit 4561392791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View File

@ -58,6 +58,7 @@ on-premises instances** that want to keep up to date.
- Fix mixed letter spacing and line height [Taiga #11178](https://tree.taiga.io/project/penpot/issue/11178)
- Fix snap nodes shortcut [Taiga #11054](https://tree.taiga.io/project/penpot/issue/11054)
- Fix changing a text property in a text layer does not unapply the previously applied token in the same property [Taiga #11337}(https://tree.taiga.io/project/penpot/issue/11337)
- Fix shortcut error pressing G+W from the View Mode [Taiga #11061](https://tree.taiga.io/project/penpot/issue/11061)
## 2.7.2

View File

@ -148,13 +148,14 @@
"Given the current layout flags, and updates them with the data
stored in Storage."
[layout]
(reduce (fn [layout [flag key]]
(condp = (get storage/user key ::none)
::none layout
false (disj layout flag)
true (conj layout flag)))
layout
layout-flags-persistence-mapping))
(let [layout (set (or layout #{}))]
(reduce-kv (fn [layout flag key]
(condp = (get storage/user key ::none)
::none layout
false (disj layout flag)
true (conj layout flag)))
layout
layout-flags-persistence-mapping)))
(defn persist-layout-flags!
"Given a set of layout flags, and persist a subset of them to the Storage."