mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T451, disable model (in model set) functions for context
This commit is contained in:
committed by
Mat Sutcliffe
parent
7f9182a1c4
commit
0970dbdcfc
@@ -244,6 +244,20 @@ namespace BlackCore
|
||||
return this->getModelSet().size();
|
||||
}
|
||||
|
||||
void CContextSimulator::disableModelsForMatching(const CAircraftModelList &removedModels, bool incremental)
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
if (!m_simulatorPlugin.second || m_simulatorPlugin.first.isUnspecified()) { return; }
|
||||
m_aircraftMatcher.disableModelsForMatching(removedModels, incremental);
|
||||
}
|
||||
|
||||
void CContextSimulator::restoreDisabledModels()
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
if (!m_simulatorPlugin.second || m_simulatorPlugin.first.isUnspecified()) { return; }
|
||||
m_aircraftMatcher.restoreDisabledModels();
|
||||
}
|
||||
|
||||
CAircraftModelList CContextSimulator::getModelSetModelsStartingWith(const QString &modelString) const
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << modelString; }
|
||||
|
||||
Reference in New Issue
Block a user