From f15ca250c1f08561c0383acb65d097bf5af1bd35 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 16 May 2025 22:46:31 +0200 Subject: [PATCH] HyprlandKeybinds: fix children undefined --- .config/quickshell/services/HyprlandKeybinds.qml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.config/quickshell/services/HyprlandKeybinds.qml b/.config/quickshell/services/HyprlandKeybinds.qml index 81c63a08e..1b2972fe9 100644 --- a/.config/quickshell/services/HyprlandKeybinds.qml +++ b/.config/quickshell/services/HyprlandKeybinds.qml @@ -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