fix - Hide/show tray icon makes duplicates in the tray menu

(cherry picked from commit 93e3a125be3602f2fd95d02fb0e11f11b1f059be)
This commit is contained in:
Yuriy Puchkov
2021-02-18 11:27:44 +02:00
parent 66c9f67626
commit cb02578a9e

View File

@@ -393,6 +393,7 @@ void Controller::openLauncherWindow()
void Controller::enableTrayIcon()
{
if (m_trayIcon) {
m_trayIcon->show();
return;
}
if (nullptr == m_trayIconMenu) {
@@ -519,7 +520,7 @@ void Controller::disableTrayIcon()
{
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
if (m_trayIcon) {
m_trayIcon->deleteLater();
m_trayIcon->hide();
}
ConfigHandler().setDisabledTrayIcon(true);
#endif