mirror of https://github.com/procxx/kepka.git
Don't recreate tray icon if it is disabled
This commit is contained in:
parent
6c46194009
commit
13e8b60d6c
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue