mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
fix the startup slowdown
This commit is contained in:
parent
edc761c4f9
commit
87735cd915
|
@ -87,7 +87,7 @@ void BadgesComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
|
||||
bool imgChanged = false;
|
||||
for (auto& slot : mSlots) {
|
||||
if (properties & PATH && elem->has(slot)) {
|
||||
if (properties & PATH && elem->has(slot) && mBadgeIcons[slot] != elem->get<std::string>(slot)) {
|
||||
mBadgeIcons[slot] = elem->get<std::string>(slot);
|
||||
mImageComponents.find(slot)->second.setImage(mBadgeIcons[slot], false, true);
|
||||
imgChanged = true;
|
||||
|
|
Loading…
Reference in a new issue