From adc743503a8c3f4574ac77ca680fffd5d24b8adc Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Wed, 6 May 2020 22:09:48 +0200 Subject: 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. --- src/core/Bootstrap.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/core/Bootstrap.cpp') 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(); } -- cgit v1.2.3