mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
Issue #77 getLogCategories returns a simple QStringList instead of our own class
This commit is contained in:
@@ -40,7 +40,7 @@ CStatusMessageList CSwiftGuiStdApplication::startHookIn()
|
||||
{
|
||||
if (coreMode == CoreModes::Standalone && !dBusAddress.isEmpty())
|
||||
{
|
||||
const CStatusMessage m = CStatusMessage(this, CLogCategory::validation()).
|
||||
const CStatusMessage m = CStatusMessage(this, CLogCategories::validation()).
|
||||
error(u"Inconsistent pair DBus: '%1' and core: '%2'")
|
||||
<< dBusAddress << coreModeStr;
|
||||
return CStatusMessageList(m) ;
|
||||
@@ -52,7 +52,7 @@ CStatusMessageList CSwiftGuiStdApplication::startHookIn()
|
||||
if (!dBusAddress.isEmpty() && coreModeStr.isEmpty())
|
||||
{
|
||||
coreMode = CoreModes::Distributed; // default
|
||||
const CStatusMessage m = CStatusMessage(this, CLogCategory::validation()).
|
||||
const CStatusMessage m = CStatusMessage(this, CLogCategories::validation()).
|
||||
info(u"No DBus address, setting core mode: '%1'")
|
||||
<< CoreModes::coreModeToString(coreMode);
|
||||
msgs.push_back(m);
|
||||
@@ -60,7 +60,7 @@ CStatusMessageList CSwiftGuiStdApplication::startHookIn()
|
||||
else if (dBusAddress.isEmpty() && coreMode == CoreModes::Distributed)
|
||||
{
|
||||
dBusAddress = CDBusServer::sessionBusAddress(); // a possible default
|
||||
const CStatusMessage m = CStatusMessage(this, CLogCategory::validation()).
|
||||
const CStatusMessage m = CStatusMessage(this, CLogCategories::validation()).
|
||||
info(u"Setting DBus address to '%1'")
|
||||
<< dBusAddress;
|
||||
msgs.push_back(m);
|
||||
|
||||
@@ -94,7 +94,7 @@ void SwiftGuiStd::init()
|
||||
connect(&m_logHistoryForOverlay, &CLogHistoryReplica::elementAdded, this, [this](const CStatusMessage& message)
|
||||
{
|
||||
//! \todo filter out validation messages at CLogPattern level
|
||||
if (!message.getCategories().contains(CLogCategory::validation())) { ui->fr_CentralFrameInside->showOverlayMessage(message); }
|
||||
if (!message.getCategories().contains(CLogCategories::validation())) { ui->fr_CentralFrameInside->showOverlayMessage(message); }
|
||||
});
|
||||
m_logHistoryForStatus.initialize(sApp->getDataLinkDBus());
|
||||
m_logHistoryForOverlay.initialize(sApp->getDataLinkDBus());
|
||||
|
||||
Reference in New Issue
Block a user