mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
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.
This commit is contained in:
parent
c416c036ea
commit
adc743503a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user