Re-enabled support for using the default property without any imageType property for the image element

This commit is contained in:
Leon Styhre 2023-04-21 18:28:47 +02:00
parent e00967acfa
commit 471d0ac63a

View file

@ -548,7 +548,7 @@ void ImageComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
} }
} }
if (!mThemeImageTypes.empty() && elem->has("default")) if (elem->has("default"))
setDefaultImage(elem->get<std::string>("default")); setDefaultImage(elem->get<std::string>("default"));
bool tile {elem->has("tile") && elem->get<bool>("tile")}; bool tile {elem->has("tile") && elem->get<bool>("tile")};