mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 01:11:16 -05:00
Also show when minimize on startup is enabled, but not minimize to tray
This commit is contained in:
parent
b73549fd35
commit
fed210dc38
@ -101,9 +101,12 @@ int main(int argc, char** argv)
|
|||||||
QObject::connect(&app, SIGNAL(openFile(QString)), &mainWindow, SLOT(openDatabase(QString)));
|
QObject::connect(&app, SIGNAL(openFile(QString)), &mainWindow, SLOT(openDatabase(QString)));
|
||||||
|
|
||||||
// start minimized if configured
|
// start minimized if configured
|
||||||
if (config()->get("GUI/MinimizeOnStartup").toBool()) {
|
bool minimizeOnStartup = config()->get("GUI/MinimizeOnStartup").toBool();
|
||||||
|
bool minimizeToTray = config()->get("GUI/MinimizeToTray").toBool();
|
||||||
|
if (minimizeOnStartup) {
|
||||||
mainWindow.setWindowState(Qt::WindowMinimized);
|
mainWindow.setWindowState(Qt::WindowMinimized);
|
||||||
} else {
|
}
|
||||||
|
if (!(minimizeOnStartup && minimizeToTray)) {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user