diff options
author | Janek Bevendorff <janek@jbev.net> | 2020-05-06 23:09:48 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2020-05-07 10:57:45 +0300 |
commit | adc743503a8c3f4574ac77ca680fffd5d24b8adc (patch) | |
tree | aa4468ad84a82631bfb4bd3a2b29625058df2295 | |
parent | c416c036ea774c5522f2f3be7441874f85c6ebb3 (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.
-rw-r--r-- | src/core/Bootstrap.cpp | 4 |
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(); } |