Improved manual changing of aircraft and reset

* deferred adding and reset
* HTML overlay messages
* debug code for DBus messages
This commit is contained in:
Klaus Basan
2019-09-05 22:03:36 +02:00
parent ee91504cde
commit 0f02fba89c
4 changed files with 28 additions and 8 deletions

View File

@@ -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