From 90a6efecbbd451d59901b011e924566b723be854 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 3 Nov 2025 18:10:39 +0100 Subject: [PATCH] fix toolbar tabbar undefined warnings --- .../quickshell/ii/modules/common/widgets/ToolbarTabBar.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/ToolbarTabBar.qml b/dots/.config/quickshell/ii/modules/common/widgets/ToolbarTabBar.qml index c72263a9c..4d4d56335 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/ToolbarTabBar.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/ToolbarTabBar.qml @@ -51,8 +51,8 @@ Item { id: activeIndicator z: 0 color: Appearance.colors.colSecondaryContainer - implicitWidth: contentItem.children[root.currentIndex].implicitWidth - implicitHeight: contentItem.children[root.currentIndex].implicitHeight + implicitWidth: contentItem.children[root.currentIndex]?.implicitWidth ?? 0 + implicitHeight: contentItem.children[root.currentIndex]?.implicitHeight ?? 0 radius: height / 2 // Animation property Item targetItem: contentItem.children[root.currentIndex]