mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
[skip ci] refactor: Disable autopublish in swiftgui
This commit is contained in:
@@ -822,17 +822,6 @@ namespace swift::core
|
||||
{
|
||||
this->insertCG(cgOvr, modelString, callsign); // per model string and CG
|
||||
}
|
||||
|
||||
// here we know we have a valid model and CG did change
|
||||
const CSimulatorInfo sim = this->getSimulatorInfo();
|
||||
m_autoPublishing.insert(modelString,
|
||||
simulatorCG); // still using simulator CG here, not the overridden value
|
||||
|
||||
// if simulator did change, add as well
|
||||
if (!model.getSimulator().matchesAll(sim))
|
||||
{
|
||||
m_autoPublishing.insert(modelString, this->getSimulatorInfo());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -984,9 +973,6 @@ namespace swift::core
|
||||
void ISimulator::unload()
|
||||
{
|
||||
this->disconnectFrom(); // disconnect from simulator
|
||||
const bool saved = m_autoPublishing.writeJsonToFile(); // empty data are ignored
|
||||
if (saved) { emit this->autoPublishDataWritten(this->getSimulatorInfo()); }
|
||||
m_autoPublishing.clear();
|
||||
m_remoteAircraftProviderConnections.disconnectAll(); // disconnect signals from provider
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user