HyprlandKeybinds: fix children undefined

This commit is contained in:
end-4
2025-05-16 22:46:31 +02:00
parent c695a4879c
commit f15ca250c1
@@ -11,19 +11,15 @@ import Quickshell.Hyprland
Singleton { Singleton {
id: root id: root
property var defaultKeybinds: [] property var defaultKeybinds: {"children": []}
property var userKeybinds: [] property var userKeybinds: {"children": []}
property var keybinds: ({ property var keybinds: ({
children: [ children: [
...defaultKeybinds.children, ...(defaultKeybinds.children ?? []),
...userKeybinds.children, ...(userKeybinds.children ?? []),
] ]
}) })
// onKeybindsChanged: {
// console.log("[CheatsheetKeybinds] Keybinds changed:", JSON.stringify(keybinds, null, 2))
// }
Connections { Connections {
target: Hyprland target: Hyprland