Disabled dynamic loading of images in BadgeComponent.

This commit is contained in:
Leon Styhre 2021-10-26 18:27:30 +02:00
parent 4f9737cd23
commit 4e02ce230b

View file

@ -277,8 +277,7 @@ void BadgeComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
FlexboxComponent::FlexboxItem item;
item.label = slot;
ImageComponent badgeImage{mWindow};
badgeImage.setForceLoad(true);
ImageComponent badgeImage{mWindow, false, false};
badgeImage.setImage(mBadgeIcons[slot]);
item.baseImage = badgeImage;
item.overlayImage = ImageComponent{mWindow};