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() return _trayIcon.isNull()
|| iconThemeName != _themeName || iconThemeName != _themeName
|| systemIcon.name() != _systemIcon.name() || systemIcon.name() != _systemIcon.name()
|| muted != _muted || (systemIcon.name() != PanelIconName(counter, muted)
|| counterSlice(counter) != _count; ? muted != _muted || counterSlice(counter) != _count
: false);
} }
void IconGraphic::updateIconRegenerationNeeded( void IconGraphic::updateIconRegenerationNeeded(