mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-25 15:48:34 +00:00
feat(App): do not show splashscreen if iconified param is given
This commit is contained in:
parent
4415bf52fb
commit
c380d3e11b
1 changed files with 9 additions and 4 deletions
|
|
@ -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. :(");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue