mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T370, remove models from FSX/P3D
* clearAllRemoteAircraftData also removes aircraft (from simulator) * debugVerifyStateAfterAllAircraftRemoved only makes sense if removing aircraft and then emit the messages
This commit is contained in:
@@ -652,10 +652,8 @@ namespace BlackCore
|
||||
|
||||
if (m_simulatorPlugin.second) // check in case the plugin has been unloaded
|
||||
{
|
||||
const CStatusMessageList verifyMessages = m_simulatorPlugin.second->debugVerifyStateAfterAllAircraftRemoved();
|
||||
m_simulatorPlugin.second->clearAllRemoteAircraftData();
|
||||
m_simulatorPlugin.second->clearAllRemoteAircraftData(); // also removes aircraft
|
||||
m_simulatorPlugin.second->setFlightNetworkConnected(false);
|
||||
if (!verifyMessages.isEmpty()) { emit this->driverMessages(verifyMessages); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user