mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 01:02:51 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue