mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Using variables in other variables should work again.
Increased the number of decimals used in dynamic measures from 1 to 5.
This commit is contained in:
parent
f5f257a595
commit
c09ff5cf61
@ -107,7 +107,7 @@ void CConfigParser::ReadVariables()
|
||||
|
||||
for (size_t i = 0; i < listVariables.size(); i++)
|
||||
{
|
||||
SetVariable(listVariables[i], GetValue(L"Variables", listVariables[i], L""));
|
||||
SetVariable(listVariables[i], ReadString(L"Variables", listVariables[i].c_str(), L"", false));
|
||||
}
|
||||
}
|
||||
|
||||
@ -217,7 +217,7 @@ const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key, LPCT
|
||||
std::map<std::wstring, CMeasure*>::iterator iter = m_Measures.find(var);
|
||||
if (iter != m_Measures.end())
|
||||
{
|
||||
std::wstring value = (*iter).second->GetStringValue(true, 1, 1, false);
|
||||
std::wstring value = (*iter).second->GetStringValue(true, 1, 5, false);
|
||||
|
||||
// Measure found, replace it with the value
|
||||
result.replace(result.begin() + pos, result.begin() + end + 1, value);
|
||||
|
Loading…
Reference in New Issue
Block a user