Updating config parser

This commit is contained in:
ColdFire 2020-07-06 14:20:41 +05:30
parent 6b63b87c42
commit aac2316d74
No known key found for this signature in database
GPG key ID: D2987D555D2B667A

View file

@ -233,7 +233,10 @@ class Config(util.store.Store):
""" """
def modules(self): def modules(self):
return [item for sub in self.__args.modules for item in sub] list_of_modules = self.get('modules', None)
if (list_of_modules is None) or (type(list_of_modules) != list):
list_of_modules = [item for sub in self.__args.modules for item in sub]
return list_of_modules
"""Returns the global update interval """Returns the global update interval
@ -278,7 +281,7 @@ class Config(util.store.Store):
""" """
def theme(self): def theme(self):
return self.__args.theme return self.get('theme', self.__args.theme)
"""Returns the configured iconset name """Returns the configured iconset name