fix the startup slowdown

This commit is contained in:
Sophia Hadash 2021-09-26 20:02:03 +02:00
parent edc761c4f9
commit 87735cd915

View file

@ -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;