mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Reverted 9623766
This commit is contained in:
parent
876fe7006a
commit
2336b08b88
@ -426,9 +426,7 @@ std::wstring CMeasure::ExtractWord(std::wstring& buffer)
|
|||||||
|
|
||||||
bool CMeasure::Update()
|
bool CMeasure::Update()
|
||||||
{
|
{
|
||||||
bool update = !IsDisabled();
|
if (!m_Disabled)
|
||||||
|
|
||||||
if (update)
|
|
||||||
{
|
{
|
||||||
// Only update the counter if the divider
|
// Only update the counter if the divider
|
||||||
++m_UpdateCounter;
|
++m_UpdateCounter;
|
||||||
@ -487,12 +485,6 @@ bool CMeasure::Update()
|
|||||||
}
|
}
|
||||||
m_Value /= (double)averageValuesSize;
|
m_Value /= (double)averageValuesSize;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Disabled measures have 0 as value
|
|
||||||
m_Value = 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_MeterWindow)
|
if (m_MeterWindow)
|
||||||
{
|
{
|
||||||
@ -545,7 +537,14 @@ bool CMeasure::Update()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return update;
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Disabled measures have 0 as value
|
||||||
|
m_Value = 0.0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user