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 {
id: root
property var defaultKeybinds: []
property var userKeybinds: []
property var defaultKeybinds: {"children": []}
property var userKeybinds: {"children": []}
property var keybinds: ({
children: [
...defaultKeybinds.children,
...userKeybinds.children,
...(defaultKeybinds.children ?? []),
...(userKeybinds.children ?? []),
]
})
// onKeybindsChanged: {
// console.log("[CheatsheetKeybinds] Keybinds changed:", JSON.stringify(keybinds, null, 2))
// }
Connections {
target: Hyprland