From 916601a52c20aa3ed4a2bc55432e22ef63ebc334 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 29 Jun 2020 16:55:04 +0400 Subject: [PATCH] Don't request IsStatusNotifierHostRegistered when SNI become available To avoid situations when StatusNotifierItem registers icon, but tdesktop assumes that there are still no SNI --- 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 2f3e547506..b3649b5163 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -585,7 +585,7 @@ void MainWindow::onSNIOwnerChanged( } trayIcon = nullptr; - SNIAvailable = IsSNIAvailable(); + SNIAvailable = !newOwner.isEmpty(); const auto trayAvailable = SNIAvailable || QSystemTrayIcon::isSystemTrayAvailable();