From d197787ab8a04705f6367af8f2f4b9916bc15edb Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 17 Jul 2025 15:45:35 +0700 Subject: [PATCH] fix tabbar warning --- .config/quickshell/ii/modules/common/widgets/PrimaryTabBar.qml | 2 +- .../ii/modules/sidebarRight/quickToggles/CloudflareWarp.qml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/quickshell/ii/modules/common/widgets/PrimaryTabBar.qml b/.config/quickshell/ii/modules/common/widgets/PrimaryTabBar.qml index 0c35781fe..8cb4804a9 100644 --- a/.config/quickshell/ii/modules/common/widgets/PrimaryTabBar.qml +++ b/.config/quickshell/ii/modules/common/widgets/PrimaryTabBar.qml @@ -66,7 +66,7 @@ ColumnLayout { id: indicator property int tabCount: root.tabButtonList.length property real fullTabSize: root.width / tabCount; - property real targetWidth: tabBar.contentItem.children[0].children[tabBar.currentIndex].tabContentWidth + property real targetWidth: tabBar.contentItem?.children[0]?.children[tabBar.currentIndex]?.tabContentWidth ?? 0 implicitWidth: targetWidth anchors { diff --git a/.config/quickshell/ii/modules/sidebarRight/quickToggles/CloudflareWarp.qml b/.config/quickshell/ii/modules/sidebarRight/quickToggles/CloudflareWarp.qml index eaa0c79ff..476927e29 100644 --- a/.config/quickshell/ii/modules/sidebarRight/quickToggles/CloudflareWarp.qml +++ b/.config/quickshell/ii/modules/sidebarRight/quickToggles/CloudflareWarp.qml @@ -74,7 +74,6 @@ QuickToggleButton { id: warpStatusCollector onStreamFinished: { if (warpStatusCollector.text.length > 0) { - console.log("Showing warp") root.visible = true } if (warpStatusCollector.text.includes("Unable")) {