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:
spx
2010-05-31 21:02:04 +00:00
parent 669791c075
commit b675265606
6 changed files with 109 additions and 71 deletions

View File

@ -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)