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 #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 droidmonkey committed May 15, 2021
1 parent 816587c commit 8012d3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/DatabaseWidget.cpp
Expand Up @@ -1176,6 +1176,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 8012d3a

Please sign in to comment.