mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 14:45:33 +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:
@@ -1082,7 +1082,18 @@ namespace BlackCore
|
||||
const CCallsign callsign = aircraft.getCallsign();
|
||||
if (!this->isPhysicallyRenderedAircraft(callsign)) { return false; }
|
||||
this->physicallyRemoveRemoteAircraft(callsign);
|
||||
return this->changeRemoteAircraftEnabled(aircraft);
|
||||
// return this->changeRemoteAircraftEnabled(aircraft);
|
||||
|
||||
const QPointer<ISimulator> myself(this);
|
||||
QTimer::singleShot(1000, this, [ = ]
|
||||
{
|
||||
if (!myself) { return; }
|
||||
if (this->isAircraftInRange(callsign))
|
||||
{
|
||||
this->changeRemoteAircraftEnabled(aircraft);
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
CStatusMessageList ISimulator::debugVerifyStateAfterAllAircraftRemoved() const
|
||||
|
||||
Reference in New Issue
Block a user