mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 17:05:59 +01:00
Handle subcategories
This commit is contained in:
parent
1eec8c3741
commit
03624e2060
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue