Add checkbox to allow minimize after database unlock.

Default option is set to off
This commit is contained in:
Frederic Linus Schulz
2019-08-12 19:31:37 +02:00
committed by Jonathan White
parent 018e9f30be
commit 0a3b19edf2
4 changed files with 13 additions and 0 deletions

View File

@@ -911,6 +911,9 @@ void DatabaseWidget::loadDatabase(bool accepted)
m_fileWatcher->restart();
m_saveAttempts = 0;
emit databaseUnlocked();
if (config()->get("MinimizeAfterUnlock").toBool()) {
window()->showMinimized();
}
} else {
m_fileWatcher->stop();
if (m_databaseOpenWidget->database()) {