mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional change to f2a494b
This commit is contained in:
parent
f2a494b675
commit
1fece1e4d8
@ -543,16 +543,8 @@ bool CMeasure::Update()
|
||||
{
|
||||
// Disabled measures have 0 as value
|
||||
m_Value = 0.0;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void CMeasure::Disable()
|
||||
{
|
||||
m_Disabled = true;
|
||||
|
||||
// IfActions are not checked when disabled, so set committed state to false if
|
||||
// condition is not met with value = 0
|
||||
// Set IfAction committed state to false if condition is not met with value = 0
|
||||
if ((int)m_IfEqualValue != 0)
|
||||
{
|
||||
m_IfEqualCommitted = false;
|
||||
@ -567,6 +559,9 @@ void CMeasure::Disable()
|
||||
{
|
||||
m_IfBelowCommitted = false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
const WCHAR* GetName() { return m_Name.c_str(); }
|
||||
const std::wstring& GetOriginalName() { return m_Name; }
|
||||
|
||||
void Disable();
|
||||
void Disable() { m_Disabled = true; }
|
||||
void Enable() { m_Disabled = false; }
|
||||
bool IsDisabled() { return m_Disabled; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user