mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-30 18:18:35 -04:00
Fix start minimized to tray for unix
This commit is contained in:
parent
ed60a3dcce
commit
dc6c9186c9
1 changed files with 4 additions and 0 deletions
|
@ -106,7 +106,11 @@ namespace Bootstrap
|
||||||
{
|
{
|
||||||
// start minimized if configured
|
// start minimized if configured
|
||||||
if (config()->get("GUI/MinimizeOnStartup").toBool()) {
|
if (config()->get("GUI/MinimizeOnStartup").toBool()) {
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
mainWindow.showMinimized();
|
mainWindow.showMinimized();
|
||||||
|
#else
|
||||||
|
mainWindow.hideWindow();
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
mainWindow.bringToFront();
|
mainWindow.bringToFront();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue