mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 22:36:59 -05: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
@ -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…
x
Reference in New Issue
Block a user