Merge pull request #679 from fenilgandhi/main

Updating config parser
This commit is contained in:
tobi-wan-kenobi 2020-07-09 06:52:53 +02:00 committed by GitHub
commit 5c207df6ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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