mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #791, further improve reverse lookup
* utility function if web data are already available * moved setOwnAircraftModel as reverseLookupAndUpdateOwnAircraftModel to CSimulatorCommon * reverseLookupAndUpdateOwnAircraftModel also handles async lookup when data are not yet available * removed context ps_allSwiftWebDataRead reverse lookup, done in CSimulatorCommon now
This commit is contained in:
@@ -324,11 +324,8 @@ namespace BlackCore
|
||||
|
||||
void CContextOwnAircraft::ps_allSwiftWebDataRead()
|
||||
{
|
||||
const CAircraftModel model = this->getOwnAircraftModel();
|
||||
if (model.isLoadedFromDb()) { return; }
|
||||
|
||||
// a reverse lookup of the model could make sense
|
||||
this->updateOwnModel(model); // force reverse lookup
|
||||
// we should already receive a reverse lookup model
|
||||
// from the driver
|
||||
}
|
||||
|
||||
void CContextOwnAircraft::setAudioVoiceRoomOverrideUrls(const QString &voiceRoom1Url, const QString &voiceRoom2Url)
|
||||
|
||||
Reference in New Issue
Block a user