mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #336 Using the new CLogMessage syntax to log messages.
This commit is contained in:
@@ -236,13 +236,13 @@ void MainWindow::initialDataReads()
|
||||
this->m_coreAvailable = (this->getIContextNetwork()->isUsingImplementingObject() || (this->getIContextApplication()->ping(t) == t));
|
||||
if (!this->m_coreAvailable)
|
||||
{
|
||||
this->ps_displayStatusMessageInGui(CLogMessage().error(this, "no initial data read as network context is not available"));
|
||||
this->ps_displayStatusMessageInGui(CLogMessage(this).error("no initial data read as network context is not available"));
|
||||
return;
|
||||
}
|
||||
|
||||
this->ui->comp_MainInfoArea->getSettingsComponent()->reloadSettings(); // init read
|
||||
this->ps_reloadOwnAircraft(); // init read, independent of traffic network
|
||||
this->ps_displayStatusMessageInGui(CLogMessage().info(this, "initial data read"));
|
||||
this->ps_displayStatusMessageInGui(CLogMessage(this).info("initial data read"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user