mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix start minimized to tray for unix
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user