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:
@ -243,8 +243,8 @@ void MeterHistogram::ReadOptions(ConfigParser& parser, const WCHAR* section)
|
||||
m_OverlapImage.ClearOptionFlags();
|
||||
}
|
||||
|
||||
m_Autoscale = 0!=parser.ReadInt(section, L"AutoScale", 0);
|
||||
m_Flip = 0!=parser.ReadInt(section, L"Flip", 0);
|
||||
m_Autoscale = parser.ReadBool(section, L"AutoScale", false);
|
||||
m_Flip = parser.ReadBool(section, L"Flip", false);
|
||||
|
||||
const WCHAR* graph = parser.ReadString(section, L"GraphStart", L"RIGHT").c_str();
|
||||
if (_wcsicmp(graph, L"RIGHT") == 0)
|
||||
|
Reference in New Issue
Block a user