From 4384c809617f33d26ecf0e5c8b28fd69da18f628 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 4 Apr 2017 12:58:44 +0300 Subject: [PATCH] Prefer appindicator only on Unity and Pantheon. Commit dcd6028e91 introduced a regression which caused appindicator tray icon to be preferred everywhere else. --- 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 da8915f2d..59a03792e 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -376,7 +376,7 @@ void MainWindow::updateIconCounters() { void MainWindow::LibsLoaded() { noQtTrayIcon = !DesktopEnvironment::TryQtTrayIcon(); - tryAppIndicator = !DesktopEnvironment::PreferAppIndicatorTrayIcon(); + tryAppIndicator = DesktopEnvironment::PreferAppIndicatorTrayIcon(); LOG(("Tray Icon: Try Qt = %1, Prefer appindicator = %2").arg(Logs::b(!noQtTrayIcon)).arg(Logs::b(tryAppIndicator)));