configmgr: fix parsing of touchdevice groups

fixes #3992
This commit is contained in:
Vaxry 2023-11-29 03:39:45 +00:00
parent e2f18f8c7f
commit 3caaa483d4

View file

@ -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);