mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
Improved manual changing of aircraft and reset
* deferred adding and reset * HTML overlay messages * debug code for DBus messages
This commit is contained in:
committed by
Mat Sutcliffe
parent
1d75b5fac7
commit
902d18339a
@@ -1044,10 +1044,16 @@ namespace BlackCore
|
||||
{
|
||||
CSimulatedAircraft aircraft = this->getAircraftInRangeForCallsign(callsign);
|
||||
if (aircraft.getCallsign() != callsign) { return false; } // not found
|
||||
this->setAircraftEnabledFlag(callsign, true); // plain vanilla flag
|
||||
this->updateAircraftRendered(callsign, false); // this is flag only anyway
|
||||
if (!this->isSimulatorAvailable()) { return false; }
|
||||
|
||||
m_simulatorPlugin.second->logicallyRemoveRemoteAircraft(callsign);
|
||||
aircraft.setModel(aircraft.getNetworkModel()); // like originally from network
|
||||
this->xCtxAddedRemoteAircraftReadyForModelMatching(aircraft);
|
||||
QPointer<CContextSimulator> myself(this);
|
||||
QTimer::singleShot(1000, this, [ = ]
|
||||
{
|
||||
if (!sApp || sApp->isShuttingDown() || !myself) { return; }
|
||||
this->xCtxAddedRemoteAircraftReadyForModelMatching(aircraft);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user