From c380d3e11b918333645ba24c93e64c50d4de4b5a Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 26 Jun 2017 12:00:22 +0200 Subject: [PATCH] feat(App): do not show splashscreen if `iconified` param is given --- src/app/App.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/App.cpp b/src/app/App.cpp index 8c1756530..a10a0b88e 100644 --- a/src/app/App.cpp +++ b/src/app/App.cpp @@ -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. :("); });