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
1 changed files with 4 additions and 0 deletions

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()) {