mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-21 06:32:08 +03:00
Handle subcategories
This commit is contained in:
parent
1eec8c3741
commit
03624e2060
@ -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 New Issue
Block a user