mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Don't check the count when it's not going to painted
This commit is contained in:
parent
439f8d0914
commit
1b589a35cf
1 changed files with 3 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue