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