Skip to content

Commit

Permalink
Fix "Minimise at startup" on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phoerious committed May 7, 2020
1 parent c416c03 commit adc7435
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/Bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit adc7435

Please sign in to comment.