mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
Fix bogus comment removal
The previous substr call would remove everything but the comment, which is not what we want.
This commit is contained in:
parent
883037029f
commit
f916b00de7
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ void Config::Load()
|
|||
}
|
||||
if (comment != std::string_view::npos)
|
||||
{
|
||||
lineView = lineView.substr(comment - 1);
|
||||
lineView = lineView.substr(0, comment - 1);
|
||||
}
|
||||
|
||||
bool foundProperty = false;
|
||||
|
@ -135,7 +135,7 @@ void Config::Load()
|
|||
|
||||
if (foundProperty == false)
|
||||
{
|
||||
LOG("Warning: unknown config var: " << line);
|
||||
LOG("Warning: unknown config var: " << lineView);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue