Bugfix: When attempting to mark a directory as favorite game, the favorites navigation sound played.

This commit is contained in:
Leon Styhre 2020-06-17 18:55:38 +02:00
parent 0e6b43a5a3
commit 20001d0cca

View file

@ -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;
}