mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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;
|
trayIcon = nullptr;
|
||||||
|
|
||||||
SNIAvailable = IsSNIAvailable();
|
SNIAvailable = !newOwner.isEmpty();
|
||||||
|
|
||||||
const auto trayAvailable = SNIAvailable
|
const auto trayAvailable = SNIAvailable
|
||||||
|| QSystemTrayIcon::isSystemTrayAvailable();
|
|| QSystemTrayIcon::isSystemTrayAvailable();
|
||||||
|
|
Loading…
Add table
Reference in a new issue