From 1b589a35cf4311e19e0b7600095d7c18b63952ba Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 30 Mar 2024 13:21:40 +0400 Subject: [PATCH] Don't check the count when it's not going to painted --- Telegram/SourceFiles/platform/linux/tray_linux.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/tray_linux.cpp b/Telegram/SourceFiles/platform/linux/tray_linux.cpp index 9753556c4..ab1e34df8 100644 --- a/Telegram/SourceFiles/platform/linux/tray_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/tray_linux.cpp @@ -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(