refactor: Emit CApplication::startUpComplete on starting event loop

This commit is contained in:
Lars Toenning
2024-02-14 23:04:35 +01:00
parent 9da0630063
commit 99de8009be
7 changed files with 6 additions and 17 deletions

View File

@@ -200,6 +200,7 @@ namespace BlackCore
int CApplication::exec()
{
Q_ASSERT_X(instance(), Q_FUNC_INFO, "missing application");
emit this->startUpCompleted(true);
CApplication::registerAsRunning();
return QCoreApplication::exec();
}
@@ -1074,8 +1075,6 @@ namespace BlackCore
const CStatusMessageList msgs = this->asyncWebAndContextStart();
m_started = msgs.isSuccess();
}
if (m_signalStartup) { emit this->startUpCompleted(m_started); }
}
void CApplication::onStartUpCompleted()