From d103de96aad6ddf90b4c8d7eefdef8b289cdab82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Fri, 28 Feb 2025 18:00:23 +0100 Subject: [PATCH] Don't create tray icon if system tray is not supported This fixes the problem that the tray icon is created in GNOME if it was enabled in other desktop environment previously. --- src/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index 37a2a8e37..2a4dd5058 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -294,7 +294,7 @@ bool Controller::supportSystemTray() const void Controller::setQuitOnLastWindowClosed() { #ifndef Q_OS_ANDROID - if (NeoChatConfig::self()->systemTray()) { + if (supportSystemTray() && NeoChatConfig::self()->systemTray()) { m_trayIcon = new TrayIcon(this); m_trayIcon->show(); } else {