[core/config] change preferred theme source

now, it works like this:

- if present, use what's on the CLI
- if not, use what's present in the config
- fallback is "default"

see #679
This commit is contained in:
tobi-wan-kenobi 2020-07-09 06:56:43 +02:00
parent 5c207df6ae
commit 057f894d52

View file

@ -153,7 +153,7 @@ class Config(util.store.Store):
default=[],
help=PARAMETER_HELP,
)
parser.add_argument("-t", "--theme", default="default", help=THEME_HELP)
parser.add_argument("-t", "--theme", default=None, help=THEME_HELP)
parser.add_argument(
"-i",
"--iconset",
@ -281,7 +281,7 @@ class Config(util.store.Store):
"""
def theme(self):
return self.get('theme', self.__args.theme)
return self.__args.theme or self.get("theme") or "default"
"""Returns the configured iconset name