[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:
tobi-wan-kenobi 2021-10-07 15:39:29 +02:00
parent ed5a4e61e4
commit c96d119b0e
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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]