mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Allow text messages on the splash screen, currently used with setup reader
This commit is contained in:
committed by
Mat Sutcliffe
parent
0817d38b4c
commit
e7a807efdf
@@ -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);
|
||||
|
||||
@@ -129,6 +129,9 @@ namespace BlackCore
|
||||
//! A shared URL was successfully read
|
||||
void successfullyReadSharedUrl(const BlackMisc::Network::CUrl &sharedUrl);
|
||||
|
||||
//! Message about the loading status
|
||||
void setupLoadingMessages(const BlackMisc::CStatusMessageList &messages);
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
explicit CSetupReader(QObject *parent);
|
||||
|
||||
Reference in New Issue
Block a user