From 08d1a2dfd6dd201c39eb184b4fece97e5e497647 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 27 Oct 2025 22:44:33 +0100 Subject: [PATCH] buttongroup: fix childrencount accessing from children --- .../quickshell/ii/modules/common/widgets/ButtonGroup.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/ButtonGroup.qml b/dots/.config/quickshell/ii/modules/common/widgets/ButtonGroup.qml index 32cd5e04f..d3c9114eb 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/ButtonGroup.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/ButtonGroup.qml @@ -13,8 +13,8 @@ Rectangle { property alias uniformCellSizes: rowLayout.uniformCellSizes property real spacing: 5 property real padding: 0 - property int clickIndex: rowLayout.clickIndex - property int childrenCount: rowLayout.children.length + property alias clickIndex: rowLayout.clickIndex + property alias childrenCount: rowLayout.childrenCount property real contentWidth: { let total = 0; @@ -44,5 +44,6 @@ Rectangle { anchors.margins: root.padding spacing: root.spacing property int clickIndex: -1 + property int childrenCount: children.length }] }