Handle subcategories

This commit is contained in:
Sixels 2022-04-19 13:42:26 -03:00
parent 1eec8c3741
commit 03624e2060

View File

@ -260,7 +260,14 @@ void CConfigManager::parseLine(std::string& line) {
if (line.find(" {") != std::string::npos) {
auto cat = line.substr(0, line.find(" {"));
transform(cat.begin(), cat.end(), cat.begin(), ::tolower);
currentCategory = cat;
if (currentCategory.length() != 0) {
currentCategory.push_back(':');
currentCategory.append(cat);
}
else {
currentCategory = cat;
}
return;
}