Skip to content

Commit

Permalink
add Lock Databases option to tray icon menu
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aswild authored and droidmonkey committed Mar 31, 2019
1 parent d7660da commit b3ce7ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b3ce7ec

Please sign in to comment.