diff --git a/Plugins/PluginFileView/PluginFileView.cpp b/Plugins/PluginFileView/PluginFileView.cpp index 03053239..13cd4b91 100644 --- a/Plugins/PluginFileView/PluginFileView.cpp +++ b/Plugins/PluginFileView/PluginFileView.cpp @@ -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"); diff --git a/Plugins/PluginFileView/PluginFileView.h b/Plugins/PluginFileView/PluginFileView.h index 8d144af4..418326ab 100644 --- a/Plugins/PluginFileView/PluginFileView.h +++ b/Plugins/PluginFileView/PluginFileView.h @@ -180,7 +180,7 @@ struct ChildMeasure date(DTYPE_MODIFIED), iconSize(IS_LARGE), iconPath(L""), - index(0), + index(1), ignoreCount(false), needsIcon(true), value(0.0),