[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:
parent
5c207df6ae
commit
057f894d52
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ class Config(util.store.Store):
|
||||||
default=[],
|
default=[],
|
||||||
help=PARAMETER_HELP,
|
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(
|
parser.add_argument(
|
||||||
"-i",
|
"-i",
|
||||||
"--iconset",
|
"--iconset",
|
||||||
|
@ -281,7 +281,7 @@ class Config(util.store.Store):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def theme(self):
|
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
|
"""Returns the configured iconset name
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue