Fixed an issue where setting a nonexistent file for the carousel defaultItem property could lead to double gamelist carousel text fallback items.

This commit is contained in:
Leon Styhre 2022-08-21 18:37:51 +02:00
parent fca9e51844
commit ef2f3f3ba9

View file

@ -564,6 +564,8 @@ void GamelistBase::populateList(const std::vector<FileData*>& files, FileData* f
if (mCarousel != nullptr) {
carouselItemType = mCarousel->getItemType();
carouselDefaultItem = mCarousel->getDefaultItem();
if (!ResourceManager::getInstance().fileExists(carouselDefaultItem))
carouselDefaultItem = "";
}
if (files.size() > 0) {