From f6e89ed60c3f8c48c6284cf768ca877861696b16 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 20 Jul 2025 21:52:32 +0700 Subject: [PATCH] right sidebar: bottomwidgetgroup tabs: set currentIndex directly --- .../quickshell/ii/modules/sidebarRight/BottomWidgetGroup.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.config/quickshell/ii/modules/sidebarRight/BottomWidgetGroup.qml b/.config/quickshell/ii/modules/sidebarRight/BottomWidgetGroup.qml index 764258e66..bbbedacea 100644 --- a/.config/quickshell/ii/modules/sidebarRight/BottomWidgetGroup.qml +++ b/.config/quickshell/ii/modules/sidebarRight/BottomWidgetGroup.qml @@ -177,6 +177,7 @@ Rectangle { Layout.alignment: Qt.AlignVCenter property int realIndex: root.selectedTab property int animationDuration: Appearance.animation.elementMoveFast.duration * 1.5 + currentIndex: root.selectedTab // Switch the tab on halfway of the anim duration Connections { @@ -217,10 +218,6 @@ Rectangle { } } } - - Component.onCompleted: { - tabStack.currentIndex = root.selectedTab - } } }