fix: dash wrong current item

Closes #1291
This commit is contained in:
2 * r + 2 * t 2026-03-19 20:46:55 +11:00
parent 60de5a129a
commit 6b61164808

View file

@ -81,7 +81,10 @@ Item {
id: view
readonly property int currentIndex: root.state.currentTab
readonly property Item currentItem: row.children[currentIndex]
readonly property Item currentItem: {
repeater.count; // Trigger update on count change
return repeater.itemAt(currentIndex);
}
anchors.fill: parent
@ -119,6 +122,8 @@ Item {
id: row
Repeater {
id: repeater
model: ScriptModel {
values: root.dashboardTabs
}