Fixed an issue where the GridComponent layout was not calculated if there was only a placeholder entry.

This commit is contained in:
Leon Styhre 2022-12-07 21:23:53 +01:00
parent 56b33c5371
commit 2d24230a48

View file

@ -707,13 +707,14 @@ void GamelistBase::populateList(const std::vector<FileData*>& files, FileData* f
mTextList->addEntry(textListEntry);
}
}
if (mGrid != nullptr)
mGrid->calculateLayout();
}
else {
addPlaceholder(firstEntry);
}
if (mGrid != nullptr)
mGrid->calculateLayout();
generateGamelistInfo(getCursor(), firstEntry);
generateFirstLetterIndex(files);
}