mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 01:11:16 -05:00
Fix start minimized to tray for unix
This commit is contained in:
parent
ed60a3dcce
commit
dc6c9186c9
@ -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…
x
Reference in New Issue
Block a user