[core/config] add autohide to configuration file
make it possible to configure a list of automatically hidden modules in the configuration file (+ add documentation for it). fixes #822
This commit is contained in:
parent
ed5a4e61e4
commit
c96d119b0e
2 changed files with 2 additions and 1 deletions
|
@ -328,7 +328,7 @@ class Config(util.store.Store):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def autohide(self, name):
|
def autohide(self, name):
|
||||||
return name in self.__args.autohide
|
return name in self.__args.autohide or self.get("autohide")
|
||||||
|
|
||||||
"""Returns which modules should be hidden if they are in state error
|
"""Returns which modules should be hidden if they are in state error
|
||||||
|
|
||||||
|
|
|
@ -160,6 +160,7 @@ Configuration files have the following format:
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
modules = <comma-separated list of modules to load>
|
modules = <comma-separated list of modules to load>
|
||||||
|
autohid = <comma-separated list of modules to hide, unless in warning/error state>
|
||||||
theme = <theme to use by default>
|
theme = <theme to use by default>
|
||||||
|
|
||||||
[module-parameters]
|
[module-parameters]
|
||||||
|
|
Loading…
Reference in a new issue