diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index b80aa50ed..ada611d37 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -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> dbList; dbList.append(m_db);