Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2020-05-06 23:09:48 +0300
committerJanek Bevendorff <janek@jbev.net>2020-05-07 10:57:45 +0300
commitadc743503a8c3f4574ac77ca680fffd5d24b8adc (patch)
treeaa4468ad84a82631bfb4bd3a2b29625058df2295 /src/core/Bootstrap.cpp
parentc416c036ea774c5522f2f3be7441874f85c6ebb3 (diff)
Fix "Minimise at startup" on Windows
This option didn't work properly when "Hide window to system tray when minimised" was also enabled. I don't see a particular reason why Windows shouldn't be calling hideWindow() like all other platforms. hideWindow() takes care of choosing the correct minimisation mode based on the user's settings.
Diffstat (limited to 'src/core/Bootstrap.cpp')
-rw-r--r--src/core/Bootstrap.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/Bootstrap.cpp b/src/core/Bootstrap.cpp
index 3f5a67a05..797bd4e54 100644
--- a/src/core/Bootstrap.cpp
+++ b/src/core/Bootstrap.cpp
@@ -101,11 +101,7 @@ namespace Bootstrap
{
// start minimized if configured
if (config()->get(Config::GUI_MinimizeOnStartup).toBool()) {
-#ifdef Q_OS_WIN
- mainWindow.showMinimized();
-#else
mainWindow.hideWindow();
-#endif
} else {
mainWindow.bringToFront();
}