mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
refs #917, made simulator settings read only
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e4c7a2b77f
commit
0942d007d5
@@ -559,8 +559,8 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
stopSimulatorListeners();
|
stopSimulatorListeners();
|
||||||
|
|
||||||
auto enabledSimulators = m_enabledSimulators.getThreadLocal();
|
const auto enabledSimulators = m_enabledSimulators.getThreadLocal();
|
||||||
auto allSimulators = m_plugins->getAvailableSimulatorPlugins();
|
const auto allSimulators = m_plugins->getAvailableSimulatorPlugins();
|
||||||
for (const CSimulatorPluginInfo &s : allSimulators)
|
for (const CSimulatorPluginInfo &s : allSimulators)
|
||||||
{
|
{
|
||||||
if (enabledSimulators.contains(s.getIdentifier()))
|
if (enabledSimulators.contains(s.getIdentifier()))
|
||||||
|
|||||||
@@ -200,14 +200,14 @@ namespace BlackCore
|
|||||||
CPluginManagerSimulator *m_plugins = nullptr;
|
CPluginManagerSimulator *m_plugins = nullptr;
|
||||||
BlackMisc::CRegularThread m_listenersThread; //!< waiting for plugin
|
BlackMisc::CRegularThread m_listenersThread; //!< waiting for plugin
|
||||||
BlackCore::CWeatherManager m_weatherManager { this };
|
BlackCore::CWeatherManager m_weatherManager { this };
|
||||||
BlackMisc::CSetting<BlackCore::Application::TEnabledSimulators> m_enabledSimulators { this, &CContextSimulator::restoreSimulatorPlugins };
|
|
||||||
BlackCore::CAircraftMatcher m_aircraftMatcher; //!< Model matcher
|
BlackCore::CAircraftMatcher m_aircraftMatcher; //!< Model matcher
|
||||||
BlackMisc::Simulation::CAircraftModelSetLoader m_modelSetLoader { this }; //!< load model set from caches
|
BlackMisc::Simulation::CAircraftModelSetLoader m_modelSetLoader { this }; //!< load model set from caches
|
||||||
QMap<BlackMisc::Aviation::CCallsign, BlackMisc::CStatusMessageList> m_matchingMessages;
|
QMap<BlackMisc::Aviation::CCallsign, BlackMisc::CStatusMessageList> m_matchingMessages;
|
||||||
BlackMisc::CSettingReadOnly<BlackMisc::Simulation::TSimulatorMessages> m_messageSettings { this }; //!< settings for messages
|
BlackMisc::CSettingReadOnly<BlackMisc::Simulation::TSimulatorMessages> m_messageSettings { this }; //!< settings for messages
|
||||||
|
BlackMisc::CSettingReadOnly<BlackCore::Application::TEnabledSimulators> m_enabledSimulators { this, &CContextSimulator::restoreSimulatorPlugins };
|
||||||
|
QString m_networkSessionId; //! Network session, if not connected empty
|
||||||
bool m_initallyAddAircrafts = false;
|
bool m_initallyAddAircrafts = false;
|
||||||
bool m_enableMatchingMessages = true;
|
bool m_enableMatchingMessages = true;
|
||||||
QString m_networkSessionId; //! Network session, if not connected empty
|
|
||||||
bool m_isWeatherActivated = false;
|
bool m_isWeatherActivated = false;
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user