From ce553c2c0eed259566dce84a2304522495228d19 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 11 May 2025 11:27:49 +0200 Subject: [PATCH] fix tab bar interaction with persistent states --- .config/quickshell/modules/common/widgets/PrimaryTabBar.qml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml b/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml index 84fac10d7..e0fbd6d90 100644 --- a/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml +++ b/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml @@ -7,7 +7,6 @@ import Quickshell ColumnLayout { id: root spacing: 0 - property bool _initialized: false required property var tabButtonList // Something like [{"icon": "notifications", "name": qsTr("Notifications")}, {"icon": "volume_up", "name": qsTr("Volume mixer")}] required property var externalTrackedTab property bool enableIndicatorAnimation: false @@ -18,10 +17,6 @@ ColumnLayout { Layout.fillWidth: true currentIndex: root.externalTrackedTab onCurrentIndexChanged: { - if (!root._initialized) { - root._initialized = true - return - } root.onCurrentIndexChanged(currentIndex) }