From d8d1071c778c79c01a70373326c99c4cc5fe1c9f Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 28 Sep 2023 05:22:16 -0500 Subject: [PATCH] fixing looping not working after switching to Rust --- src/qml/presenter/Presentation.qml | 4 ++++ src/qml/presenter/PresentationWindow.qml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index 87837f3..440e7e1 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -325,6 +325,10 @@ FocusScope { } playVideo(); } + function onLoopingChanged() { + if(SlideObject.looping) + previewSlide.loopVideo(); + } function onIsPlayingChanged() { if(SlideObject.isPlaying) previewSlide.playVideo(); diff --git a/src/qml/presenter/PresentationWindow.qml b/src/qml/presenter/PresentationWindow.qml index 601e371..a07afbd 100644 --- a/src/qml/presenter/PresentationWindow.qml +++ b/src/qml/presenter/PresentationWindow.qml @@ -79,6 +79,10 @@ Item { presentationSlide.playVideo(); pauseVideo(); } + function onLoopingChanged() { + if(SlideObj.looping) + presentationSlide.loopVideo(); + } function onAudioChanged() { if (presentationWindow.visible) presentationSlide.playAudio();