Allow text messages on the splash screen, currently used with setup reader

This commit is contained in:
Klaus Basan
2018-12-22 06:27:13 +01:00
committed by Mat Sutcliffe
parent 0817d38b4c
commit e7a807efdf
6 changed files with 182 additions and 24 deletions

View File

@@ -385,7 +385,8 @@ namespace BlackCore
nwReplyPtr->close();
if (setupJson.isEmpty())
{
CLogMessage(this).info("No bootstrap setup file at '%1'") << urlString;
const CStatusMessage m = CLogMessage(this).info("No bootstrap setup file at '%1'") << urlString;
emit this->setupLoadingMessages(m);
}
else
{
@@ -416,7 +417,8 @@ namespace BlackCore
{
// no issue with cache
m_updateInfoUrls = loadedSetup.getSwiftUpdateInfoFileUrls();
CLogMessage(this).info("Loaded setup from '%1'") << urlString;
const CStatusMessage m = CLogMessage(this).info("Loaded setup from '%1'") << urlString;
emit this->setupLoadingMessages(m);
CLogMessage(this).info("Setup: Updated data cache in '%1'") << m_setup.getFilename();
{
QWriteLocker l(&m_lockSetup);