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(); initiateViewer();
if (mHasVideo) { if (mHasVideo)
ViewController::get()->onPauseVideo(); ViewController::get()->onPauseVideo();
}
if (mHasVideo || mHasImages) if (mHasVideo || mHasImages)
return true; return true;
@ -138,10 +137,8 @@ void MediaViewer::initiateViewer()
findMedia(); findMedia();
if (!mHasVideo && !mHasImages) { if (!mHasVideo && !mHasImages)
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
return; return;
}
if (mHasVideo) if (mHasVideo)
playVideo(); playVideo();