mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
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:
parent
fca9e51844
commit
ef2f3f3ba9
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue