From aac2316d746be42a1b34d67b002bee4d2796714a Mon Sep 17 00:00:00 2001 From: ColdFire Date: Mon, 6 Jul 2020 14:20:41 +0530 Subject: [PATCH] Updating config parser --- bumblebee_status/core/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bumblebee_status/core/config.py b/bumblebee_status/core/config.py index 67aba5f..bde212e 100644 --- a/bumblebee_status/core/config.py +++ b/bumblebee_status/core/config.py @@ -233,7 +233,10 @@ class Config(util.store.Store): """ 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 @@ -278,7 +281,7 @@ class Config(util.store.Store): """ def theme(self): - return self.__args.theme + return self.get('theme', self.__args.theme) """Returns the configured iconset name