mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05: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();
|
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();
|
||||||
|
|
Loading…
Reference in a new issue