mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-09 08:09:37 -04:00
Don't try to show window when 'Minimize at startup' is enabled, prevents rendering glitches in Unity, resolves #304
This commit is contained in:
parent
ef53600d74
commit
7a344930ec
1 changed files with 2 additions and 1 deletions
|
@ -97,13 +97,14 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
MainWindow mainWindow;
|
MainWindow mainWindow;
|
||||||
app.setMainWindow(&mainWindow);
|
app.setMainWindow(&mainWindow);
|
||||||
mainWindow.show();
|
|
||||||
|
|
||||||
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()) {
|
if (config()->get("GUI/MinimizeOnStartup").toBool()) {
|
||||||
mainWindow.setWindowState(Qt::WindowMinimized);
|
mainWindow.setWindowState(Qt::WindowMinimized);
|
||||||
|
} else {
|
||||||
|
mainWindow.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int ii=0; ii < args.length(); ii++) {
|
for (int ii=0; ii < args.length(); ii++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue