From da926d7f10ea172085a398f612639ae0a52f7c73 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 15 Mar 2020 06:55:32 +0400 Subject: [PATCH] Disable SNI tray icon name setting in snap Otherwise there are a dummy icon when tray counter is disabled --- Telegram/SourceFiles/platform/linux/main_window_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index d4abdcf7c..874e37078 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -451,7 +451,7 @@ void MainWindow::setSNITrayIcon(int counter, bool muted, bool firstShow) { const auto iconName = GetTrayIconName(counter, muted); if (qEnvironmentVariableIsSet(kDisableTrayCounter.utf8()) - && (!iconName.isEmpty() + && ((!iconName.isEmpty() && !InSnap()) || qEnvironmentVariableIsSet(kForcePanelIcon.utf8()))) { if (_sniTrayIcon->iconName() == iconName) { return;