forked from Shinonome/dots-hyprland
HyprlandKeybinds: fix children undefined
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user