mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix wrong serialization when saving payload in new file
This commit is contained in:
parent
85bbda4234
commit
b8cce988f8
@ -120,9 +120,11 @@ class QLoadoutEditor(QGroupBox):
|
|||||||
with payload_file.open("w", encoding="utf-8") as f:
|
with payload_file.open("w", encoding="utf-8") as f:
|
||||||
payloads = {
|
payloads = {
|
||||||
"name": f"{self.flight.unit_type.dcs_unit_type.id}",
|
"name": f"{self.flight.unit_type.dcs_unit_type.id}",
|
||||||
"payloads": DcsPayload.from_flight(
|
"payloads": {
|
||||||
self.flight, payload_name
|
1: DcsPayload.from_flight(
|
||||||
).to_dict(),
|
self.flight, payload_name
|
||||||
|
).to_dict(),
|
||||||
|
},
|
||||||
"unitType": f"{self.flight.unit_type.dcs_unit_type.id}",
|
"unitType": f"{self.flight.unit_type.dcs_unit_type.id}",
|
||||||
}
|
}
|
||||||
f.write("local unitPayloads = ")
|
f.write("local unitPayloads = ")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user