From 88816c4b869eda40d3c1d5ab6fca685d2fd2e34a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 21 Jun 2021 22:13:56 +0200 Subject: [PATCH] Fixed an issue where double scroll navigation sounds were sometimes played when starting the media viewer. --- es-app/src/MediaViewer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/es-app/src/MediaViewer.cpp b/es-app/src/MediaViewer.cpp index fdf6bd926..ef187bd35 100644 --- a/es-app/src/MediaViewer.cpp +++ b/es-app/src/MediaViewer.cpp @@ -42,9 +42,8 @@ bool MediaViewer::startMediaViewer(FileData* game) initiateViewer(); - if (mHasVideo) { + if (mHasVideo) ViewController::get()->onPauseVideo(); - } if (mHasVideo || mHasImages) return true; @@ -138,10 +137,8 @@ void MediaViewer::initiateViewer() findMedia(); - if (!mHasVideo && !mHasImages) { - NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND); + if (!mHasVideo && !mHasImages) return; - } if (mHasVideo) playVideo();