[XSwiftBus] Allow to write an updated xswiftbus.conf file

In a distributed core/UI swift we need to write on XPlane side
This commit is contained in:
Klaus Basan
2020-03-18 23:15:43 +01:00
committed by Mat Sutcliffe
parent 80e97f749f
commit fd3ad207bd
6 changed files with 80 additions and 1 deletions

View File

@@ -258,8 +258,10 @@ namespace XSwiftBus
CSettings s;
s.parseXSwiftBusString(jsonString);
this->setSettings(s);
const bool w = this->writeConfig(s.isTcasEnabled(), s.isLogRenderPhases());
this->updateMessageBoxFromSettings();
INFO_LOG("Received settings " + s.convertToString());
if (w) { INFO_LOG("Written new config file"); }
}
void CService::readAirportsDatabase()