2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Don't recreate tray icon if it is disabled

This commit is contained in:
Ilya Fedin
2020-03-19 03:12:36 +04:00
committed by John Preston
parent 6c46194009
commit 13e8b60d6c

View File

@@ -531,6 +531,10 @@ void MainWindow::onSNIOwnerChanged(
const QString &service,
const QString &oldOwner,
const QString &newOwner) {
if (Global::WorkMode().value() == dbiwmWindowOnly) {
return;
}
if (oldOwner.isEmpty() && !newOwner.isEmpty()) {
LOG(("Switching to SNI tray icon..."));
} else if (!oldOwner.isEmpty() && newOwner.isEmpty()) {