mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
ConfigParser: Implement ReadBool
This may break backwards compatibility in some cases. For example, the FreeDiskSpace measure treated only `Type=1` as true and `Type={0, 2, 3, ...}` as false. Now `Type=0` is false and everything else is true like with most other boolean options.
This commit is contained in:
@ -89,7 +89,7 @@ void MeasureCalc::ReadOptions(ConfigParser& parser, const WCHAR* section)
|
||||
|
||||
m_LowBound = parser.ReadInt(section, L"LowBound", 0);
|
||||
m_HighBound = parser.ReadInt(section, L"HighBound", 100);
|
||||
m_UpdateRandom = 0!=parser.ReadInt(section, L"UpdateRandom", 0);
|
||||
m_UpdateRandom = parser.ReadBool(section, L"UpdateRandom", false);
|
||||
|
||||
if (!m_Initialized ||
|
||||
wcscmp(m_Formula.c_str(), oldFormula.c_str()) != 0 ||
|
||||
|
Reference in New Issue
Block a user