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.
This commit is contained in:
committed by
Tobias Fella
parent
f248b04834
commit
d103de96aa
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user