right sidebar: bottomwidgetgroup tabs: set currentIndex directly

This commit is contained in:
end-4
2025-07-20 21:52:32 +07:00
parent 7fcea64020
commit f6e89ed60c
@@ -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
}
}
}