mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed incomplete fix in r420 and r422.
Fixed the issue that the result of some bangs is overwritten with the default value if DynamicVariables=1 is added to Measure/Meter. (Issue 125) Note that this fix is effective only when the setting is not defined in skin configuration file. The result of !RainmeterHideMeter(or Show/Toggle) is overwritten if Hidden=0/1 is added. Some minor changes.
This commit is contained in:
@ -67,8 +67,9 @@ CMeasure::CMeasure(CMeterWindow* meterWindow)
|
||||
m_MedianPos = 0;
|
||||
m_AveragePos = 0;
|
||||
m_AverageSize = 0;
|
||||
m_MeterWindow = meterWindow;
|
||||
m_DynamicVariables = false;
|
||||
|
||||
m_MeterWindow = meterWindow;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -97,7 +98,7 @@ void CMeasure::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
}
|
||||
|
||||
m_Invert = 0!=parser.ReadInt(section, L"InvertMeasure", 0);
|
||||
m_Disabled = 0!=parser.ReadInt(section, L"Disabled", 0);
|
||||
m_Disabled = 0!=parser.ReadInt(section, L"Disabled", m_Disabled);
|
||||
|
||||
UINT updateDivider = parser.ReadInt(section, L"UpdateDivider", 1);
|
||||
if (updateDivider != m_UpdateDivider)
|
||||
|
Reference in New Issue
Block a user