video_thumbnail works to be set in rust

Since every slide is asking for their own, we don't need to loop
through all slides, we just use the index to put the thumbnail into
the right slides and emit data changed.
This commit is contained in:
Chris Cochrun 2023-04-01 07:02:42 -05:00
parent 995f9ffc03
commit 060341adb7
3 changed files with 47 additions and 1 deletions

View file

@ -12,7 +12,7 @@ Item {
property bool showVidBG
Component.onCompleted: {
if (model.videoBackground != "")
SlideModel.thumbnailVideo(model.videoBackground, model.serviceItemId, index);
SlideModel.thumbnailVideoRust(model.videoBackground, model.serviceItemId, index, SlideMod);
}
Rectangle {