Merge branch 'hotfix_carousel_firstgame'

This commit is contained in:
Leon Styhre 2022-06-29 17:31:11 +02:00
commit 55d9648795

View file

@ -568,6 +568,10 @@ void GamelistBase::populateList(const std::vector<FileData*>& files, FileData* f
if (files.size() > 0) {
for (auto it = files.cbegin(); it != files.cend(); ++it) {
if (!mFirstGameEntry && (*it)->getType() == GAME)
mFirstGameEntry = (*it);
if (mCarousel != nullptr) {
assert(carouselItemType != "");
@ -586,9 +590,6 @@ void GamelistBase::populateList(const std::vector<FileData*>& files, FileData* f
std::string indicators {mTextList->getIndicators()};
std::string collectionIndicators {mTextList->getCollectionIndicators()};
if (!mFirstGameEntry && (*it)->getType() == GAME)
mFirstGameEntry = (*it);
// Add a leading tick mark icon to the game name if it's part of the custom
// collection currently being edited.
if (isEditing && (*it)->getType() == GAME) {