From c6e4a81fa0fc2216d2eaf8217f2f811918afda34 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 16 May 2021 23:30:41 +0200 Subject: [PATCH] Attempting to move beyond the last or first entry in the media viewer no longer plays a navigation sound. --- es-app/src/MediaViewer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/es-app/src/MediaViewer.cpp b/es-app/src/MediaViewer.cpp index 57a6058e2..452673749 100644 --- a/es-app/src/MediaViewer.cpp +++ b/es-app/src/MediaViewer.cpp @@ -182,7 +182,8 @@ void MediaViewer::findMedia() void MediaViewer::showNext() { - NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND); + if (mHasImages && mCurrentImageIndex != mImageFiles.size() - 1) + NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND); bool showedVideo = false; @@ -214,7 +215,8 @@ void MediaViewer::showNext() void MediaViewer::showPrevious() { - NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND); + if ((mHasVideo && mDisplayingImage) || (!mHasVideo && mCurrentImageIndex != 0)) + NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND); if (mCurrentImageIndex == 0 && !mHasVideo) { return;