mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 20:51:58 -07:00
Handle subcategories
This commit is contained in:
@@ -260,7 +260,14 @@ void CConfigManager::parseLine(std::string& line) {
|
|||||||
if (line.find(" {") != std::string::npos) {
|
if (line.find(" {") != std::string::npos) {
|
||||||
auto cat = line.substr(0, line.find(" {"));
|
auto cat = line.substr(0, line.find(" {"));
|
||||||
transform(cat.begin(), cat.end(), cat.begin(), ::tolower);
|
transform(cat.begin(), cat.end(), cat.begin(), ::tolower);
|
||||||
currentCategory = cat;
|
if (currentCategory.length() != 0) {
|
||||||
|
currentCategory.push_back(':');
|
||||||
|
currentCategory.append(cat);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
currentCategory = cat;
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user