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:
Ilya Fedin 2020-06-29 16:55:04 +04:00 committed by John Preston
parent a726c6411b
commit 916601a52c

View File

@ -585,7 +585,7 @@ void MainWindow::onSNIOwnerChanged(
}
trayIcon = nullptr;
SNIAvailable = IsSNIAvailable();
SNIAvailable = !newOwner.isEmpty();
const auto trayAvailable = SNIAvailable
|| QSystemTrayIcon::isSystemTrayAvailable();