ensure active is proper color

For some reason the right value isn't being loaded on dataChanged, so
this makes sure to reset the value correctly for now.
This commit is contained in:
Chris Cochrun 2023-03-31 14:10:17 -05:00
parent 0a9c17cdde
commit bd2002ada2

View file

@ -74,9 +74,11 @@ Item {
target: SlideMod
function onDataChanged() {
if (active) {
previewHighlight.color = Kirigami.Theme.highlightColor;
previewSlidesList.currentIndex = index;
previewSlidesList.positionViewAtIndex(index, ListView.Center);
}
} else
previewHighlight.color = Kirigami.Theme.backgroundColor;
}
}
}