mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-13 08:19:50 -05:00
Enable system tray icon click slot for Mac OS
This commit is contained in:
parent
058b4da954
commit
7d0f89ef46
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user