fixed bug: activating service item switches the slide list properly

This commit is contained in:
Chris Cochrun 2023-11-20 06:21:18 -06:00
parent 03f6871fe1
commit 3c2f74ae66
3 changed files with 16 additions and 15 deletions

View file

@ -231,6 +231,16 @@ FocusScope {
NumberAnimation {properties: "x, y"; duration: 100}
}
Connections {
target: SlideMod
function onActiveChanged(index) {
console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
console.log(index);
previewSlidesList.currentIndex = index;
previewSlidesList.positionViewAtIndex(index, ListView.Center);
}
}
}
Component {

View file

@ -85,16 +85,4 @@ Item {
propagateComposedEvents: true
}
Connections {
target: SlideMod
function onActiveChanged() {
if (active) {
console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
console.log(index);
previewSlidesList.currentIndex = index;
previewSlidesList.positionViewAtIndex(index, ListView.Center);
}
}
}
}