mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T261, added toFullJson in parts
* needed, since the "is full" attribute needs to be added * fixed usage in network vatlib
This commit is contained in:
committed by
Roland Winklmeier
parent
5bf21c2937
commit
ab0c34b16a
@@ -679,7 +679,7 @@ namespace BlackCore
|
||||
void CNetworkVatlib::replyToConfigQuery(const CCallsign &callsign)
|
||||
{
|
||||
QJsonObject config = this->getOwnAircraftParts().toJson();
|
||||
config.insert("is_full_data", true);
|
||||
config.insert(CAircraftParts::attributeNameIsFullJson(), true);
|
||||
QString data = QJsonDocument(QJsonObject { { "config", config } }).toJson(QJsonDocument::Compact);
|
||||
data = convertToUnicodeEscaped(data);
|
||||
Vat_SendAircraftConfig(m_net.data(), toFSD(callsign), toFSD(data));
|
||||
|
||||
Reference in New Issue
Block a user