mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Optimize system tray icon cache invalidation
This commit is contained in:
@@ -91,7 +91,7 @@ QIcon IconGraphic::systemIcon(
|
|||||||
int counter,
|
int counter,
|
||||||
bool muted) const {
|
bool muted) const {
|
||||||
if (iconThemeName == _themeName
|
if (iconThemeName == _themeName
|
||||||
&& counterSlice(counter) == _count
|
&& (counter > 0) == (_count > 0)
|
||||||
&& muted == _muted) {
|
&& muted == _muted) {
|
||||||
return _systemIcon;
|
return _systemIcon;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user