Don't check the count when it's not going to painted

This commit is contained in:
Ilya Fedin 2024-03-30 13:21:40 +04:00 committed by John Preston
parent 439f8d0914
commit 1b589a35cf
1 changed files with 3 additions and 2 deletions

View File

@ -130,8 +130,9 @@ bool IconGraphic::isRefreshNeeded(
return _trayIcon.isNull()
|| iconThemeName != _themeName
|| systemIcon.name() != _systemIcon.name()
|| muted != _muted
|| counterSlice(counter) != _count;
|| (systemIcon.name() != PanelIconName(counter, muted)
? muted != _muted || counterSlice(counter) != _count
: false);
}
void IconGraphic::updateIconRegenerationNeeded(