From 20001d0ccabf98ed4becb93f776543e2a2ef9d63 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Wed, 17 Jun 2020 18:55:38 +0200
Subject: [PATCH] Bugfix: When attempting to mark a directory as favorite game,
 the favorites navigation sound played.

---
 es-app/src/views/gamelist/ISimpleGameListView.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/es-app/src/views/gamelist/ISimpleGameListView.cpp b/es-app/src/views/gamelist/ISimpleGameListView.cpp
index c6eee5642..8333e3e95 100644
--- a/es-app/src/views/gamelist/ISimpleGameListView.cpp
+++ b/es-app/src/views/gamelist/ISimpleGameListView.cpp
@@ -153,7 +153,8 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
 		else if (config->isMappedTo("y", input) &&
 				!UIModeController::getInstance()->isUIModeKid()) {
 			if (mRoot->getSystem()->isGameSystem()) {
-				NavigationSounds::getInstance()->playThemeNavigationSound(FAVORITESOUND);
+				if (getCursor()->getType() == GAME)
+					NavigationSounds::getInstance()->playThemeNavigationSound(FAVORITESOUND);
 				if (CollectionSystemManager::get()->toggleGameInCollection(getCursor()))
 					return true;
 			}