mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
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.
This commit is contained in:
parent
8c61a73bb0
commit
cc6f5c3226
@ -1178,6 +1178,10 @@ void DatabaseWidget::unlockDatabase(bool accepted)
|
|||||||
sshAgent()->databaseUnlocked(m_db);
|
sshAgent()->databaseUnlocked(m_db);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (config()->get(Config::MinimizeAfterUnlock).toBool()) {
|
||||||
|
getMainWindow()->minimizeOrHide();
|
||||||
|
}
|
||||||
|
|
||||||
if (senderDialog && senderDialog->intent() == DatabaseOpenDialog::Intent::AutoType) {
|
if (senderDialog && senderDialog->intent() == DatabaseOpenDialog::Intent::AutoType) {
|
||||||
QList<QSharedPointer<Database>> dbList;
|
QList<QSharedPointer<Database>> dbList;
|
||||||
dbList.append(m_db);
|
dbList.append(m_db);
|
||||||
|
Loading…
Reference in New Issue
Block a user