mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed typo
This commit is contained in:
parent
e478768cac
commit
43f726271d
@ -83,9 +83,9 @@ CMeasure::CMeasure(CMeterWindow* meterWindow, const WCHAR* name) : m_MeterWindow
|
|||||||
m_IfEqualValue(),
|
m_IfEqualValue(),
|
||||||
m_IfAboveValue(),
|
m_IfAboveValue(),
|
||||||
m_IfBelowValue(),
|
m_IfBelowValue(),
|
||||||
m_IfEqualCommited(false),
|
m_IfEqualCommitted(false),
|
||||||
m_IfAboveCommited(false),
|
m_IfAboveCommitted(false),
|
||||||
m_IfBelowCommited(false),
|
m_IfBelowCommitted(false),
|
||||||
m_Disabled(false),
|
m_Disabled(false),
|
||||||
m_UpdateDivider(1),
|
m_UpdateDivider(1),
|
||||||
m_UpdateCounter(1),
|
m_UpdateCounter(1),
|
||||||
@ -478,15 +478,15 @@ bool CMeasure::PreUpdate()
|
|||||||
{
|
{
|
||||||
if ((int)m_Value == (int)m_IfEqualValue)
|
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);
|
Rainmeter->ExecuteCommand(m_IfEqualAction.c_str(), m_MeterWindow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_IfEqualCommited = false;
|
m_IfEqualCommitted = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -495,15 +495,15 @@ bool CMeasure::PreUpdate()
|
|||||||
{
|
{
|
||||||
if (m_Value > m_IfAboveValue)
|
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);
|
Rainmeter->ExecuteCommand(m_IfAboveAction.c_str(), m_MeterWindow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_IfAboveCommited = false;
|
m_IfAboveCommitted = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -512,15 +512,15 @@ bool CMeasure::PreUpdate()
|
|||||||
{
|
{
|
||||||
if (m_Value < m_IfBelowValue)
|
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);
|
Rainmeter->ExecuteCommand(m_IfBelowAction.c_str(), m_MeterWindow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_IfBelowCommited = false;
|
m_IfBelowCommitted = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,9 +120,9 @@ protected:
|
|||||||
std::wstring m_IfEqualAction; // The IfEqual action
|
std::wstring m_IfEqualAction; // The IfEqual action
|
||||||
std::wstring m_IfAboveAction; // The IfAbove action
|
std::wstring m_IfAboveAction; // The IfAbove action
|
||||||
std::wstring m_IfBelowAction; // The IfBelow action
|
std::wstring m_IfBelowAction; // The IfBelow action
|
||||||
bool m_IfEqualCommited; // True when the IfEqual action is executed.
|
bool m_IfEqualCommitted; // True when the IfEqual action is executed
|
||||||
bool m_IfAboveCommited; // True when the IfAbove action is executed.
|
bool m_IfAboveCommitted; // True when the IfAbove action is executed
|
||||||
bool m_IfBelowCommited; // True when the IfBelow action is executed.
|
bool m_IfBelowCommitted; // True when the IfBelow action is executed
|
||||||
bool m_Disabled; // Status of the measure
|
bool m_Disabled; // Status of the measure
|
||||||
int m_UpdateDivider; // Divider for the update
|
int m_UpdateDivider; // Divider for the update
|
||||||
int m_UpdateCounter; // Current update counter
|
int m_UpdateCounter; // Current update counter
|
||||||
|
Loading…
Reference in New Issue
Block a user