mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed an issue where double scroll navigation sounds were sometimes played when starting the media viewer.
This commit is contained in:
parent
af03efc7c6
commit
88816c4b86
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue