Fix get function functionality

To meet the documentation fix the `get` function to return the value of the
`default` parameter if an inactive setting is handled.

Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
Gabor Mezei
2024-09-18 13:30:07 +02:00
parent 23e4f48d56
commit b1ec5fd541
+1 -1
View File
@@ -90,7 +90,7 @@ class Config:
If a #define for name is present but commented out, return default.
"""
if name in self.settings:
if name in self:
return self.settings[name].value
else:
return default