diff options
author | Frederic Linus Schulz <fredericschulz@gmx.de> | 2019-08-12 20:31:37 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-09-03 04:53:16 +0300 |
commit | 0a3b19edf230264a28010f1783b37d43ae9608c3 (patch) | |
tree | 1b2dee2ff17ee535630965a37d3df7699d854967 /src/gui/DatabaseWidget.cpp | |
parent | 018e9f30be5b46755a64552a30cfbb29e2ae8c1b (diff) |
Add checkbox to allow minimize after database unlock.
Default option is set to off
Diffstat (limited to 'src/gui/DatabaseWidget.cpp')
-rw-r--r-- | src/gui/DatabaseWidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index d695ae2cd..b5698aafc 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -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()) { |