mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-28 09:32:56 +00:00
Don't request IsStatusNotifierHostRegistered when SNI become available
To avoid situations when StatusNotifierItem registers icon, but tdesktop assumes that there are still no SNI
This commit is contained in:
parent
a726c6411b
commit
916601a52c
@ -585,7 +585,7 @@ void MainWindow::onSNIOwnerChanged(
|
||||
}
|
||||
trayIcon = nullptr;
|
||||
|
||||
SNIAvailable = IsSNIAvailable();
|
||||
SNIAvailable = !newOwner.isEmpty();
|
||||
|
||||
const auto trayAvailable = SNIAvailable
|
||||
|| QSystemTrayIcon::isSystemTrayAvailable();
|
||||
|
Loading…
Reference in New Issue
Block a user