mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Got rid of the "Not a meter or measure" error.
The handling of the MeterStyle is now done in the CConfigParser.
This commit is contained in:
@ -149,7 +149,15 @@ const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key, LPCT
|
||||
defValue = L"";
|
||||
}
|
||||
|
||||
result = GetValue(section, key, defValue);
|
||||
std::wstring strDefault = defValue;
|
||||
|
||||
// If the template is defined read the value first from there.
|
||||
if (!m_StyleTemplate.empty())
|
||||
{
|
||||
strDefault = GetValue(m_StyleTemplate, key, strDefault);
|
||||
}
|
||||
|
||||
result = GetValue(section, key, strDefault);
|
||||
if (result == defValue)
|
||||
{
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user