From 8b9bcd5a89cd947c3c681940385528df7a5e1dcc Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 19 Sep 2022 16:36:18 -0500 Subject: [PATCH] fixed loading of extra mpv window --- src/qml/presenter/MainWindow.qml | 2 ++ src/qml/presenter/PresentationWindow.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qml/presenter/MainWindow.qml b/src/qml/presenter/MainWindow.qml index 40e9e1d..c51a5b2 100644 --- a/src/qml/presenter/MainWindow.qml +++ b/src/qml/presenter/MainWindow.qml @@ -131,7 +131,9 @@ Controls.Page { SlideObject.changeSlide(item); if (item.backgroundType === "video") + { presentation.loadVideo(); + } presentation.textIndex = 0; presentation.changeSlide(); diff --git a/src/qml/presenter/PresentationWindow.qml b/src/qml/presenter/PresentationWindow.qml index f7dadc7..5e70935 100644 --- a/src/qml/presenter/PresentationWindow.qml +++ b/src/qml/presenter/PresentationWindow.qml @@ -34,7 +34,7 @@ Window { id: presentationSlide anchors.fill: parent imageSource: SlideObject.imageBackground - videoSource: SlideObject.videoBackground + videoSource: presentationWindow.visible ? SlideObject.videoBackground : null text: SlideObject.text }