Commit 68400421 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix current index in subcategory list

We bind currentIndex to activeSubCategoryRow, but when clicking on an item this binding is broken

Manually set the current index when the backend index changes

BUG: 453543

Fixed-In: 5.24.6
(cherry picked from commit 40b71c08)
parent 85e88deb
Pipeline #175357 passed with stage
in 2 minutes and 9 seconds
......@@ -140,6 +140,7 @@ Kirigami.ScrollablePage {
Connections {
target: systemsettings
function onActiveSubCategoryRowChanged() {
subCategoryView.currentIndex = systemsettings.activeSubCategoryRow
if (systemsettings.activeSubCategoryRow >= 0) {
if (subCategoryView.count > 1) {
root.pageStack.push(subCategoryColumn);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment