mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 11:12:49 +00:00
Add char to config
This commit is contained in:
parent
43dd0777a8
commit
342ff57ba7
1 changed files with 11 additions and 0 deletions
|
@ -43,6 +43,17 @@ void ApplyProperty<double>(double& propertyToSet, const std::string_view& value)
|
|||
propertyToSet = std::stod(valStr.c_str());
|
||||
}
|
||||
|
||||
template<>
|
||||
void ApplyProperty<char>(char& propertyToSet, const std::string_view& value)
|
||||
{
|
||||
if (value.size() > 1)
|
||||
{
|
||||
LOG("Invalid size for char property: " << value);
|
||||
return;
|
||||
}
|
||||
propertyToSet = value[0];
|
||||
}
|
||||
|
||||
template<>
|
||||
void ApplyProperty<bool>(bool& propertyToSet, const std::string_view& value)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue