mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Changed indexing to be one-based, instead of zero-based (like Webparser)
This commit is contained in:
@ -175,7 +175,9 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
|
||||
child->parent->children.push_back(child);
|
||||
}
|
||||
|
||||
child->index = RmReadInt(rm, L"Index", 0);
|
||||
int index = RmReadInt(rm, L"Index", 1) - 1;
|
||||
child->index = index >= 0 ? index : 1;
|
||||
|
||||
child->ignoreCount = 0!=RmReadInt(rm, L"IgnoreCount", 0);
|
||||
|
||||
LPCWSTR type = RmReadString(rm, L"Type", L"FOLDERPATH");
|
||||
|
Reference in New Issue
Block a user