mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Added "isWeatherActivated" based on the discussion with LT
This commit is contained in:
committed by
Mat Sutcliffe
parent
f98ba0e494
commit
6ca6d12851
@@ -979,10 +979,15 @@ namespace BlackCore
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CContextSimulator::isWeatherActivated() const
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
if (!m_simulatorPlugin.second || m_simulatorPlugin.first.isUnspecified()) { return m_isWeatherActivated; }
|
||||
return m_simulatorPlugin.second->isWeatherActivated();
|
||||
}
|
||||
|
||||
void CContextSimulator::setWeatherActivated(bool activated)
|
||||
{
|
||||
m_isWeatherActivated = activated;
|
||||
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
if (!m_simulatorPlugin.second || m_simulatorPlugin.first.isUnspecified()) { return; }
|
||||
m_simulatorPlugin.second->setWeatherActivated(activated);
|
||||
|
||||
Reference in New Issue
Block a user