Commit a36f2db1 authored by Wescoeur's avatar Wescoeur

feat(src/app/App): create splash screen before main window

parent fe601918
...@@ -192,15 +192,8 @@ void App::initContentApp () { ...@@ -192,15 +192,8 @@ void App::initContentApp () {
// Enable notifications. // Enable notifications.
createNotifier(); createNotifier();
// Load main view.
qInfo() << QStringLiteral("Loading main view...");
mEngine->load(QUrl(QML_VIEW_MAIN_WINDOW));
if (mEngine->rootObjects().isEmpty())
qFatal("Unable to open main window.");
bool selfTest = mParser.isSet("self-test");
// Load splashscreen. // Load splashscreen.
bool selfTest = mParser.isSet("self-test");
if (!selfTest) if (!selfTest)
activeSplashScreen(this); activeSplashScreen(this);
// Set a self test limit. // Set a self test limit.
...@@ -209,6 +202,12 @@ void App::initContentApp () { ...@@ -209,6 +202,12 @@ void App::initContentApp () {
qFatal("Self test failed. :("); qFatal("Self test failed. :(");
}); });
// Load main view.
qInfo() << QStringLiteral("Loading main view...");
mEngine->load(QUrl(QML_VIEW_MAIN_WINDOW));
if (mEngine->rootObjects().isEmpty())
qFatal("Unable to open main window.");
QObject::connect( QObject::connect(
CoreManager::getInstance()->getHandlers().get(), CoreManager::getInstance()->getHandlers().get(),
&CoreHandlers::coreStarted, &CoreHandlers::coreStarted,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment