mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-24 07:08:07 +00:00
feat(src/app/App): create splash screen before main window
This commit is contained in:
parent
fe60191896
commit
a36f2db160
1 changed files with 7 additions and 8 deletions
|
|
@ -192,15 +192,8 @@ void App::initContentApp () {
|
|||
// Enable notifications.
|
||||
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.
|
||||
bool selfTest = mParser.isSet("self-test");
|
||||
if (!selfTest)
|
||||
activeSplashScreen(this);
|
||||
// Set a self test limit.
|
||||
|
|
@ -209,6 +202,12 @@ void App::initContentApp () {
|
|||
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(
|
||||
CoreManager::getInstance()->getHandlers().get(),
|
||||
&CoreHandlers::coreStarted,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue