diff options
| author | AL <26797547+Al12rs@users.noreply.github.com> | 2020-02-17 02:34:56 +0100 |
|---|---|---|
| committer | AL <26797547+Al12rs@users.noreply.github.com> | 2020-02-17 02:34:56 +0100 |
| commit | 112f91357e20b4a1638b6deeff1c71dfea66eb72 (patch) | |
| tree | 8a9641b5a41ea1e5351ecec86ff0a602f5809edf /src | |
| parent | 29b331817c5aecea3870d4a57694e46950ae362c (diff) | |
Reduce overhead introduced by splashscreen
by not letting it wait on the mainwindow and instead immediately close
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index b1b5c850..e9c1acd8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -734,14 +734,13 @@ int runApplication(MOApplication &application, SingleInstance &instance, QObject::connect(&instance, SIGNAL(messageSent(QString)), &organizer, SLOT(externalMessage(QString))); - // this must be before readSettings(), see DockFixer in mainwindow.cpp - splash.finish(&mainWindow); - log::debug("displaying main window"); mainWindow.show(); mainWindow.activateWindow(); - splash.finish(&mainWindow); + // don't pass mainwindow as it just waits half a second for it + // instead of proceding + splash.finish(nullptr); res = application.exec(); mainWindow.close(); |
