Fixed an issue where double scroll navigation sounds were sometimes played when starting the media viewer.

This commit is contained in:
Leon Styhre 2021-06-21 22:13:56 +02:00
parent af03efc7c6
commit 88816c4b86

View file

@ -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();