mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
refs #395, some functions renamed in network provider/context
Goal: consistent function names in own and remote aircraft provider
This commit is contained in:
committed by
Mathew Sutcliffe
parent
05be0ecb37
commit
1b9878fdd3
@@ -143,7 +143,7 @@ namespace BlackGui
|
||||
void CMappingComponent::ps_onChangedSimulatedAircraftInView(const BlackMisc::CVariant &object, const BlackMisc::CPropertyIndex &index)
|
||||
{
|
||||
const CSimulatedAircraft sa = object.to<CSimulatedAircraft>(); // changed in GUI
|
||||
const CSimulatedAircraft saFromBackend = this->getIContextNetwork()->getAircraftForCallsign(sa.getCallsign());
|
||||
const CSimulatedAircraft saFromBackend = this->getIContextNetwork()->getAircraftInRangeForCallsign(sa.getCallsign());
|
||||
if (!saFromBackend.hasValidCallsign()) { return; } // obviously deleted
|
||||
if (index.contains(CSimulatedAircraft::IndexEnabled))
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace BlackGui
|
||||
return;
|
||||
}
|
||||
|
||||
CSimulatedAircraft aircraftFromBackend = this->getIContextNetwork()->getAircraftForCallsign(callsign);
|
||||
CSimulatedAircraft aircraftFromBackend = this->getIContextNetwork()->getAircraftInRangeForCallsign(callsign);
|
||||
bool enabled = this->ui->cb_AircraftEnabled->isChecked();
|
||||
bool changed = false;
|
||||
if (aircraftFromBackend.getModelString() != modelString)
|
||||
|
||||
Reference in New Issue
Block a user