Commit 8e7b717d authored by Gabriel Kirsten's avatar Gabriel Kirsten
Browse files

call method to convert boolean case the parameter is boolean
parent 1ebbf5bb
......@@ -9,6 +9,7 @@
from x11_colors import X11Colors
from utils import BooleanUtils
class Config(object):
"""Class used to store the configs of program. Extend and customize if needed."""
......@@ -51,6 +52,8 @@ class Config(object):
if self.c_type is None:
return self.value
elif self.c_type is bool:
return BooleanUtils.str_to_bool(self.value)
elif self.c_type is 'color':
return self.value
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment