Fixed typo

This commit is contained in:
Birunthan Mohanathas 2012-04-10 18:33:55 +03:00
parent e478768cac
commit 43f726271d
2 changed files with 15 additions and 15 deletions

View File

@ -83,9 +83,9 @@ CMeasure::CMeasure(CMeterWindow* meterWindow, const WCHAR* name) : m_MeterWindow
m_IfEqualValue(),
m_IfAboveValue(),
m_IfBelowValue(),
m_IfEqualCommited(false),
m_IfAboveCommited(false),
m_IfBelowCommited(false),
m_IfEqualCommitted(false),
m_IfAboveCommitted(false),
m_IfBelowCommitted(false),
m_Disabled(false),
m_UpdateDivider(1),
m_UpdateCounter(1),
@ -478,15 +478,15 @@ bool CMeasure::PreUpdate()
{
if ((int)m_Value == (int)m_IfEqualValue)
{
if (!m_IfEqualCommited)
if (!m_IfEqualCommitted)
{
m_IfEqualCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
m_IfEqualCommitted = true; // To avoid crashing by !Update due to infinite loop
Rainmeter->ExecuteCommand(m_IfEqualAction.c_str(), m_MeterWindow);
}
}
else
{
m_IfEqualCommited = false;
m_IfEqualCommitted = false;
}
}
@ -495,15 +495,15 @@ bool CMeasure::PreUpdate()
{
if (m_Value > m_IfAboveValue)
{
if (!m_IfAboveCommited)
if (!m_IfAboveCommitted)
{
m_IfAboveCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
m_IfAboveCommitted= true; // To avoid crashing by !Update due to infinite loop
Rainmeter->ExecuteCommand(m_IfAboveAction.c_str(), m_MeterWindow);
}
}
else
{
m_IfAboveCommited = false;
m_IfAboveCommitted = false;
}
}
@ -512,15 +512,15 @@ bool CMeasure::PreUpdate()
{
if (m_Value < m_IfBelowValue)
{
if (!m_IfBelowCommited)
if (!m_IfBelowCommitted)
{
m_IfBelowCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
m_IfBelowCommitted = true; // To avoid crashing by !Update due to infinite loop
Rainmeter->ExecuteCommand(m_IfBelowAction.c_str(), m_MeterWindow);
}
}
else
{
m_IfBelowCommited = false;
m_IfBelowCommitted = false;
}
}
}

View File

@ -120,9 +120,9 @@ protected:
std::wstring m_IfEqualAction; // The IfEqual action
std::wstring m_IfAboveAction; // The IfAbove action
std::wstring m_IfBelowAction; // The IfBelow action
bool m_IfEqualCommited; // True when the IfEqual action is executed.
bool m_IfAboveCommited; // True when the IfAbove action is executed.
bool m_IfBelowCommited; // True when the IfBelow action is executed.
bool m_IfEqualCommitted; // True when the IfEqual action is executed
bool m_IfAboveCommitted; // True when the IfAbove action is executed
bool m_IfBelowCommitted; // True when the IfBelow action is executed
bool m_Disabled; // Status of the measure
int m_UpdateDivider; // Divider for the update
int m_UpdateCounter; // Current update counter