From 0a3b19edf230264a28010f1783b37d43ae9608c3 Mon Sep 17 00:00:00 2001 From: Frederic Linus Schulz Date: Mon, 12 Aug 2019 19:31:37 +0200 Subject: Add checkbox to allow minimize after database unlock. Default option is set to off --- src/gui/DatabaseWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/DatabaseWidget.cpp') 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()) { -- cgit v1.2.3