forked from Shinonome/dots-hyprland
right sidebar: bottomwidgetgroup tabs: set currentIndex directly
This commit is contained in:
@@ -177,6 +177,7 @@ Rectangle {
|
|||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
property int realIndex: root.selectedTab
|
property int realIndex: root.selectedTab
|
||||||
property int animationDuration: Appearance.animation.elementMoveFast.duration * 1.5
|
property int animationDuration: Appearance.animation.elementMoveFast.duration * 1.5
|
||||||
|
currentIndex: root.selectedTab
|
||||||
|
|
||||||
// Switch the tab on halfway of the anim duration
|
// Switch the tab on halfway of the anim duration
|
||||||
Connections {
|
Connections {
|
||||||
@@ -217,10 +218,6 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
tabStack.currentIndex = root.selectedTab
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user