mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Don't recreate tray icon if it is disabled
This commit is contained in:
@@ -531,6 +531,10 @@ void MainWindow::onSNIOwnerChanged(
|
|||||||
const QString &service,
|
const QString &service,
|
||||||
const QString &oldOwner,
|
const QString &oldOwner,
|
||||||
const QString &newOwner) {
|
const QString &newOwner) {
|
||||||
|
if (Global::WorkMode().value() == dbiwmWindowOnly) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (oldOwner.isEmpty() && !newOwner.isEmpty()) {
|
if (oldOwner.isEmpty() && !newOwner.isEmpty()) {
|
||||||
LOG(("Switching to SNI tray icon..."));
|
LOG(("Switching to SNI tray icon..."));
|
||||||
} else if (!oldOwner.isEmpty() && newOwner.isEmpty()) {
|
} else if (!oldOwner.isEmpty() && newOwner.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user