From b3ce7ec9c4aaa133005ca2eb854301f92642fc5b Mon Sep 17 00:00:00 2001 From: Allen Wild Date: Wed, 27 Mar 2019 19:56:10 -0400 Subject: [PATCH] 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. --- src/gui/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 9e60b53e..0eae0a37 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -936,6 +936,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);