Fix recursive static init (#2196)

* Removed default config for abstract logger that sends a system notification, also cleaned up a useless ifdef

* Send notifications from event loop on Win and Mac (#2197)

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

Co-authored-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
borgmanJeremy
2021-12-28 08:43:17 -06:00
committed by GitHub
parent 06eb7acdd3
commit fcadc02a29
2 changed files with 8 additions and 3 deletions

View File

@@ -519,12 +519,10 @@ void Controller::enableTrayIcon()
void Controller::disableTrayIcon()
{
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX) || defined(Q_OS_MACOS)
if (m_trayIcon) {
m_trayIcon->hide();
}
ConfigHandler().setDisabledTrayIcon(true);
#endif
}
void Controller::sendTrayNotification(const QString& text,