mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Ref T111, set a single simulator as proposed by RW
This commit is contained in:
committed by
Mathew Sutcliffe
parent
2476b9f412
commit
c36c3a4a05
@@ -75,7 +75,7 @@ namespace BlackMisc
|
||||
void setPropertyByIndex(const BlackMisc::CPropertyIndex &index, const BlackMisc::CVariant &variant);
|
||||
|
||||
private:
|
||||
BlackMisc::Simulation::CSimulatorInfo m_emulatedSimulator;
|
||||
BlackMisc::Simulation::CSimulatorInfo m_emulatedSimulator { BlackMisc::Simulation::CSimulatorInfo::P3D }; // simulator with default value
|
||||
BlackMisc::Simulation::CAircraftModel m_ownModel;
|
||||
BlackMisc::Simulation::CAircraftModel m_defaultModel;
|
||||
bool m_logFunctionCalls = true;
|
||||
@@ -94,6 +94,9 @@ namespace BlackMisc
|
||||
{
|
||||
//! Key in data cache
|
||||
static const char *key() { return "settingsswiftplugin"; }
|
||||
|
||||
//! Validator function.
|
||||
static bool isValid(const CSwiftPluginSettings &value) { return value.getEmulatedSimulator().isSingleSimulator(); }
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user