Commit c380d3e1 authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent 4415bf52
......@@ -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. :(");
});
......
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