From 7bd079d48dd43528faf745c8e11aa99bcb71cbd6 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 bedd6c97f..96475a0fb 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -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);