mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +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;
|
bool imgChanged = false;
|
||||||
for (auto& slot : mSlots) {
|
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);
|
mBadgeIcons[slot] = elem->get<std::string>(slot);
|
||||||
mImageComponents.find(slot)->second.setImage(mBadgeIcons[slot], false, true);
|
mImageComponents.find(slot)->second.setImage(mBadgeIcons[slot], false, true);
|
||||||
imgChanged = true;
|
imgChanged = true;
|
||||||
|
|
Loading…
Reference in a new issue