Skip to content

Commit

Permalink
MinimizeAfterUnlock also when unlocking through browser
Browse files Browse the repository at this point in the history
The MinimizeAfterUnlock setting added in keepassxreboot#3439 closes the main window
after unlock. However, when the unlock is triggered through
KeePassXC-Browser, a password dialog is shown on top of the main window
and the main window remains open after the unlock. This is fixed
in this commit.
  • Loading branch information
lrytz authored and pull[bot] committed May 15, 2021
1 parent 543e4ca commit 37172a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/DatabaseWidget.cpp
Expand Up @@ -1178,6 +1178,10 @@ void DatabaseWidget::unlockDatabase(bool accepted)
sshAgent()->databaseUnlocked(m_db);
#endif

if (config()->get(Config::MinimizeAfterUnlock).toBool()) {
getMainWindow()->minimizeOrHide();
}

if (senderDialog && senderDialog->intent() == DatabaseOpenDialog::Intent::AutoType) {
QList<QSharedPointer<Database>> dbList;
dbList.append(m_db);
Expand Down

0 comments on commit 37172a2

Please sign in to comment.