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:
parent
fba5fb9995
commit
21a716c6db
@ -175,7 +175,9 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
|
|||||||
child->parent->children.push_back(child);
|
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);
|
child->ignoreCount = 0!=RmReadInt(rm, L"IgnoreCount", 0);
|
||||||
|
|
||||||
LPCWSTR type = RmReadString(rm, L"Type", L"FOLDERPATH");
|
LPCWSTR type = RmReadString(rm, L"Type", L"FOLDERPATH");
|
||||||
|
@ -180,7 +180,7 @@ struct ChildMeasure
|
|||||||
date(DTYPE_MODIFIED),
|
date(DTYPE_MODIFIED),
|
||||||
iconSize(IS_LARGE),
|
iconSize(IS_LARGE),
|
||||||
iconPath(L""),
|
iconPath(L""),
|
||||||
index(0),
|
index(1),
|
||||||
ignoreCount(false),
|
ignoreCount(false),
|
||||||
needsIcon(true),
|
needsIcon(true),
|
||||||
value(0.0),
|
value(0.0),
|
||||||
|
Loading…
Reference in New Issue
Block a user