mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04: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)));
|
||||
|
||||
// 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);
|
||||
} else {
|
||||
}
|
||||
if (!(minimizeOnStartup && minimizeToTray)) {
|
||||
mainWindow.show();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user