mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Made it possible to set the defaultImage property for the carousel and grid elements using variables
This commit is contained in:
parent
3996ec6321
commit
315877b1f0
|
@ -537,7 +537,9 @@ void SystemView::populate()
|
|||
if (mCarousel != nullptr || mGrid != nullptr) {
|
||||
if (element.second.has("staticImage"))
|
||||
imagePath = element.second.get<std::string>("staticImage");
|
||||
if (element.second.has("defaultImage"))
|
||||
if (element.second.has("defaultImage") &&
|
||||
Utils::FileSystem::exists(
|
||||
element.second.get<std::string>("defaultImage")))
|
||||
defaultImagePath = element.second.get<std::string>("defaultImage");
|
||||
if (element.second.has("text"))
|
||||
itemText = element.second.get<std::string>("text");
|
||||
|
|
Loading…
Reference in a new issue