[core/config] fix autohide parameter from configuration file

Need to parse the config parameter "autohide" into a list and actually
check whether the current module is in the list.

see #835
This commit is contained in:
tobi-wan-kenobi 2021-11-05 13:57:05 +01:00
parent c7f58ae2a4
commit f0ab3ef03a

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 or self.get("autohide") return name in self.__args.autohide or name in util.format.aslist(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