From 2adc1c6e912d8750780241bd43b0a1ddca8f0a8f Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 6 Mar 2023 13:28:13 -0600 Subject: [PATCH] id for loopSwitch --- src/qml/presenter/Presentation.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index 4ac7e74..5b8b1f4 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -171,6 +171,7 @@ FocusScope { } Controls.Switch { + id: loopSwitch text: "Loop" checked: previewSlide.mpvLoop === "inf" ? true : false onToggled: mainPage.loopVideo() @@ -294,8 +295,9 @@ FocusScope { function onVideoBackgroundChanged() { if (SlideObject.videoBackground === "") stopVideo(); - else + else { loadVideo(); + } playVideo(); } function onIsPlayingChanged() {