mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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) {
|
if (mCarousel != nullptr) {
|
||||||
carouselItemType = mCarousel->getItemType();
|
carouselItemType = mCarousel->getItemType();
|
||||||
carouselDefaultItem = mCarousel->getDefaultItem();
|
carouselDefaultItem = mCarousel->getDefaultItem();
|
||||||
|
if (!ResourceManager::getInstance().fileExists(carouselDefaultItem))
|
||||||
|
carouselDefaultItem = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (files.size() > 0) {
|
if (files.size() > 0) {
|
||||||
|
|
Loading…
Reference in a new issue