mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 21:29:48 +01:00
parent
e2f18f8c7f
commit
3caaa483d4
1 changed files with 1 additions and 1 deletions
|
@ -1515,7 +1515,7 @@ void CConfigManager::parseLine(std::string& line) {
|
|||
|
||||
const auto LASTSEP = currentCategory.find_last_of(':');
|
||||
|
||||
if (LASTSEP == std::string::npos || currentCategory.contains("device"))
|
||||
if (LASTSEP == std::string::npos || currentCategory.starts_with("device"))
|
||||
currentCategory = "";
|
||||
else
|
||||
currentCategory = currentCategory.substr(0, LASTSEP);
|
||||
|
|
Loading…
Reference in a new issue