diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2021-03-24 19:02:49 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2021-05-30 15:44:09 +0300 |
commit | 438172bef9366314915a2a91ca1fcd4beb770167 (patch) | |
tree | 9125a0b072eef4b882baa7336bd84acae3b9c5df | |
parent | 7941d59f4a2e2753842643306abb0958772860d4 (diff) |
MinimizeAfterUnlock also when unlocking through browser
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.
-rw-r--r-- | src/gui/DatabaseWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index a91d15b3b..0f0037ced 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -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); |