[skip ci] refactor: Disable autopublish in swiftgui

This commit is contained in:
Lars Toenning
2024-11-24 16:24:40 +01:00
parent e97c2db821
commit 8f760a892c
6 changed files with 0 additions and 62 deletions

View File

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