mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed crash when If***Action contains !RainmeterUpdate. (It caused an infinite loop.)
This commit is contained in:
parent
365206e33a
commit
7c09acb889
@ -357,8 +357,8 @@ bool CMeasure::PreUpdate()
|
|||||||
{
|
{
|
||||||
if(!m_IfEqualCommited)
|
if(!m_IfEqualCommited)
|
||||||
{
|
{
|
||||||
|
m_IfEqualCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
|
||||||
Rainmeter->ExecuteCommand(m_IfEqualAction.c_str(), m_MeterWindow);
|
Rainmeter->ExecuteCommand(m_IfEqualAction.c_str(), m_MeterWindow);
|
||||||
m_IfEqualCommited = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -374,8 +374,8 @@ bool CMeasure::PreUpdate()
|
|||||||
{
|
{
|
||||||
if(!m_IfAboveCommited)
|
if(!m_IfAboveCommited)
|
||||||
{
|
{
|
||||||
|
m_IfAboveCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
|
||||||
Rainmeter->ExecuteCommand(m_IfAboveAction.c_str(), m_MeterWindow);
|
Rainmeter->ExecuteCommand(m_IfAboveAction.c_str(), m_MeterWindow);
|
||||||
m_IfAboveCommited = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -391,8 +391,8 @@ bool CMeasure::PreUpdate()
|
|||||||
{
|
{
|
||||||
if(!m_IfBelowCommited)
|
if(!m_IfBelowCommited)
|
||||||
{
|
{
|
||||||
|
m_IfBelowCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop
|
||||||
Rainmeter->ExecuteCommand(m_IfBelowAction.c_str(), m_MeterWindow);
|
Rainmeter->ExecuteCommand(m_IfBelowAction.c_str(), m_MeterWindow);
|
||||||
m_IfBelowCommited = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user