From 2e2f01ae5be06b8ba97cebbe86512a4300d649c4 Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Sun, 10 Dec 2023 17:59:21 +0100 Subject: [PATCH 1/2] stop playback on switching from analyse --- Source/GUI/dvrescue/dvrescue/AnalysePage.qml | 2 ++ Source/GUI/dvrescue/dvrescue/main.qml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Source/GUI/dvrescue/dvrescue/AnalysePage.qml b/Source/GUI/dvrescue/dvrescue/AnalysePage.qml index 768889bd..deb8906b 100644 --- a/Source/GUI/dvrescue/dvrescue/AnalysePage.qml +++ b/Source/GUI/dvrescue/dvrescue/AnalysePage.qml @@ -32,6 +32,8 @@ Item { property alias dataView: dataView property alias filesModel: fileView.filesModel property alias recentFilesModel: recentsPopup.filesModel + property alias playerView: playerView + property int framesCount: dataModel.total onFramesCountChanged: { console.debug('analyse page: framesCount = ', framesCount) diff --git a/Source/GUI/dvrescue/dvrescue/main.qml b/Source/GUI/dvrescue/dvrescue/main.qml index c89d2e3e..8534d4a8 100644 --- a/Source/GUI/dvrescue/dvrescue/main.qml +++ b/Source/GUI/dvrescue/dvrescue/main.qml @@ -90,6 +90,12 @@ ApplicationWindow { checkable: true; property int index: 1 checked: true + onCheckedChanged: { + if(!checked) { + analysePage.playerView.player.stop(); + } + } + icon.source: "/icons/menu-analysis.svg" } NavButton { From 42fd2597e5e00c26eefc6cc8f8965e29cb8fb46e Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Mon, 11 Dec 2023 20:24:18 +0100 Subject: [PATCH 2/2] pause instead of stop in switching from analyse --- Source/GUI/dvrescue/dvrescue/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GUI/dvrescue/dvrescue/main.qml b/Source/GUI/dvrescue/dvrescue/main.qml index 8534d4a8..d888647c 100644 --- a/Source/GUI/dvrescue/dvrescue/main.qml +++ b/Source/GUI/dvrescue/dvrescue/main.qml @@ -92,7 +92,7 @@ ApplicationWindow { checked: true onCheckedChanged: { if(!checked) { - analysePage.playerView.player.stop(); + analysePage.playerView.player.pause(); } }