feat(App): do not show splashscreen if iconified param is given

This commit is contained in:
Ronan Abhamon 2017-06-26 12:00:22 +02:00
parent 4415bf52fb
commit c380d3e11b

View file

@ -200,10 +200,15 @@ void App::initContentApp () {
// Load splashscreen.
bool selfTest = mParser->isSet("self-test");
if (!selfTest)
::activeSplashScreen(mEngine);
// Set a self test limit.
else
if (!selfTest) {
#ifdef Q_OS_MACOS
::activeSplashScreen(mEngine);
#else
if (!mParser->isSet("iconified"))
::activeSplashScreen(mEngine);
#endif // ifdef Q_OS_MACOS
} else
// Set a self test limit.
QTimer::singleShot(SELF_TEST_DELAY, this, [] {
qFatal("Self test failed. :(");
});