From 32152245286d55daf209900d1b43b9da3c32661c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 6 Mar 2025 16:13:40 +0000 Subject: [PATCH] Don't create tray icon if system tray is not supported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the problem that the tray icon is created in GNOME if it was enabled in other desktop environment previously. (cherry picked from commit d103de96aad6ddf90b4c8d7eefdef8b289cdab82) Co-authored-by: Balló György --- src/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index bc4445b58..f72694459 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 {