mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +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;
|
mCurrentFirstCharacter = FOLDER_CHAR;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (mFavoritesSorting && file->getFavorite() &&
|
// Check if the currently selected game is a favorite.
|
||||||
mFirstLetterIndex.front() == FAVORITE_CHAR)
|
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;
|
mCurrentFirstCharacter = FAVORITE_CHAR;
|
||||||
else
|
else
|
||||||
mCurrentFirstCharacter = toupper(file->getSortName().front());
|
mCurrentFirstCharacter = toupper(file->getSortName().front());
|
||||||
|
|
Loading…
Reference in a new issue