Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2021-03-24 19:02:49 +0300
committerJonathan White <support@dmapps.us>2021-05-30 15:44:09 +0300
commit438172bef9366314915a2a91ca1fcd4beb770167 (patch)
tree9125a0b072eef4b882baa7336bd84acae3b9c5df
parent7941d59f4a2e2753842643306abb0958772860d4 (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.cpp4
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);