mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixed an issue where the quick selector couldn't find out if a game was a favorite.
This commit is contained in:
parent
d4e614c0c1
commit
2b82770e43
|
@ -69,8 +69,15 @@ GuiGamelistOptions::GuiGamelistOptions(
|
|||
mCurrentFirstCharacter = FOLDER_CHAR;
|
||||
}
|
||||
else {
|
||||
if (mFavoritesSorting && file->getFavorite() &&
|
||||
mFirstLetterIndex.front() == FAVORITE_CHAR)
|
||||
// Check if the currently selected game is a favorite.
|
||||
bool isFavorite = false;
|
||||
if (mFirstLetterIndex.size() == 1 && mFirstLetterIndex.front() == FAVORITE_CHAR)
|
||||
isFavorite = true;
|
||||
else if (mFirstLetterIndex.size() > 1 && (mFirstLetterIndex.front() == FAVORITE_CHAR ||
|
||||
mFirstLetterIndex[1] == FAVORITE_CHAR))
|
||||
isFavorite = true;
|
||||
|
||||
if (mFavoritesSorting && file->getFavorite() && isFavorite)
|
||||
mCurrentFirstCharacter = FAVORITE_CHAR;
|
||||
else
|
||||
mCurrentFirstCharacter = toupper(file->getSortName().front());
|
||||
|
|
Loading…
Reference in a new issue