From 471d0ac63a6b23b0665d172933955a2da4affbf6 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 21 Apr 2023 18:28:47 +0200 Subject: [PATCH] Re-enabled support for using the default property without any imageType property for the image element --- es-core/src/components/ImageComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/ImageComponent.cpp b/es-core/src/components/ImageComponent.cpp index 4d9f6e4f7..801d2b4ed 100644 --- a/es-core/src/components/ImageComponent.cpp +++ b/es-core/src/components/ImageComponent.cpp @@ -548,7 +548,7 @@ void ImageComponent::applyTheme(const std::shared_ptr& theme, } } - if (!mThemeImageTypes.empty() && elem->has("default")) + if (elem->has("default")) setDefaultImage(elem->get("default")); bool tile {elem->has("tile") && elem->get("tile")};