mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ void MainWindow::onSNIOwnerChanged(
|
|||
}
|
||||
trayIcon = nullptr;
|
||||
|
||||
SNIAvailable = IsSNIAvailable();
|
||||
SNIAvailable = !newOwner.isEmpty();
|
||||
|
||||
const auto trayAvailable = SNIAvailable
|
||||
|| QSystemTrayIcon::isSystemTrayAvailable();
|
||||
|
|
Loading…
Add table
Reference in a new issue