attempt at fixing bug with slides not activating with service item

This commit is contained in:
Chris Cochrun 2023-11-16 11:21:00 -06:00
parent 4685c9eb70
commit c6700907b1
5 changed files with 55 additions and 14 deletions

View file

@ -11,6 +11,7 @@ Item {
implicitHeight: Kirigami.Units.gridUnit * 6.5
implicitWidth: Kirigami.Units.gridUnit * 9
property bool showVidBG
/* property var previewSlidesList: parent */
/* Component.onCompleted: { */
/* if (model.videoBackground != "") */
/* SlideModel.thumbnailVideoRust(model.videoBackground, model.serviceItemId, index, SlideMod); */
@ -89,6 +90,8 @@ Item {
target: SlideMod
function onActiveChanged() {
if (active) {
console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
console.log(index);
previewSlidesList.currentIndex = index;
previewSlidesList.positionViewAtIndex(index, ListView.Center);
}