mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Attempting to move beyond the last or first entry in the media viewer no longer plays a navigation sound.
This commit is contained in:
parent
78e6e1a870
commit
c6e4a81fa0
|
@ -182,6 +182,7 @@ void MediaViewer::findMedia()
|
||||||
|
|
||||||
void MediaViewer::showNext()
|
void MediaViewer::showNext()
|
||||||
{
|
{
|
||||||
|
if (mHasImages && mCurrentImageIndex != mImageFiles.size() - 1)
|
||||||
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
||||||
|
|
||||||
bool showedVideo = false;
|
bool showedVideo = false;
|
||||||
|
@ -214,6 +215,7 @@ void MediaViewer::showNext()
|
||||||
|
|
||||||
void MediaViewer::showPrevious()
|
void MediaViewer::showPrevious()
|
||||||
{
|
{
|
||||||
|
if ((mHasVideo && mDisplayingImage) || (!mHasVideo && mCurrentImageIndex != 0))
|
||||||
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
||||||
|
|
||||||
if (mCurrentImageIndex == 0 && !mHasVideo) {
|
if (mCurrentImageIndex == 0 && !mHasVideo) {
|
||||||
|
|
Loading…
Reference in a new issue