From e4604a8317a3f9255224d10eef265efd64e702e6 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Tue, 28 Apr 2020 20:03:30 +0200 Subject: [PATCH] [modules/nvidiagpu] Automatically hide if deactivated fixes #603 --- bumblebee/modules/nvidiagpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/nvidiagpu.py b/bumblebee/modules/nvidiagpu.py index 45803e4..a0d2f3f 100644 --- a/bumblebee/modules/nvidiagpu.py +++ b/bumblebee/modules/nvidiagpu.py @@ -26,7 +26,7 @@ class Module(bumblebee.engine.Module): def hidden(self): 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 False