[modules/nvidiagpu] Automatically hide if deactivated

fixes #603
This commit is contained in:
tobi-wan-kenobi 2020-04-28 20:03:30 +02:00
parent 6f9abf616d
commit e4604a8317

View file

@ -26,7 +26,7 @@ class Module(bumblebee.engine.Module):
def hidden(self): def hidden(self):
hide = bumblebee.util.asbool(self.parameter("hide", False)) hide = bumblebee.util.asbool(self.parameter("hide", False))
if hide and self._utilization == "not found: 0°C 0/0 MiB": if hide and "not found" in self._utilization.startswith("not found"):
return True return True
return False return False