add Lock Databases option to tray icon menu

This is useful when keepassxc is minimized/hidden to the tray, and all
the plumbing is already in place from the lock icon button in the main
window UI.
This commit is contained in:
Allen Wild 2019-03-27 19:56:10 -04:00 committed by Jonathan White
parent a0c84dbd0d
commit 7bd079d48d
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -943,6 +943,8 @@ void MainWindow::updateTrayIcon()
QAction* actionToggle = new QAction(tr("Toggle window"), menu);
menu->addAction(actionToggle);
menu->addAction(m_ui->actionLockDatabases);
#ifdef Q_OS_MACOS
QAction* actionQuit = new QAction(tr("Quit KeePassXC"), menu);
menu->addAction(actionQuit);