Enable system tray icon click slot for Mac OS

This commit is contained in:
Manuel Dewald 2019-10-01 10:35:13 +02:00 committed by Jonathan White
parent 058b4da954
commit 7d0f89ef46

View File

@ -1053,10 +1053,10 @@ void MainWindow::updateTrayIcon()
#else #else
menu->addAction(m_ui->actionQuit); menu->addAction(m_ui->actionQuit);
#endif
connect(m_trayIcon, connect(m_trayIcon,
SIGNAL(activated(QSystemTrayIcon::ActivationReason)), SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
SLOT(trayIconTriggered(QSystemTrayIcon::ActivationReason))); SLOT(trayIconTriggered(QSystemTrayIcon::ActivationReason)));
#endif
connect(actionToggle, SIGNAL(triggered()), SLOT(toggleWindow())); connect(actionToggle, SIGNAL(triggered()), SLOT(toggleWindow()));
m_trayIcon->setContextMenu(menu); m_trayIcon->setContextMenu(menu);