From 13626f6b3e6058341232d026ffcb9a64562d23ec Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Fri, 1 May 2020 09:45:02 +0200 Subject: [PATCH] [modules/sensors2] Add module reference to widgets fixes #612 --- modules/core/sensors2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/sensors2.py b/modules/core/sensors2.py index d16a3ff..42297a7 100644 --- a/modules/core/sensors2.py +++ b/modules/core/sensors2.py @@ -66,7 +66,7 @@ class Module(core.module.Module): exclude_chip_field = tuple(filter(len, util.format.aslist(self.parameter('chip_field_exclude', '')))) if util.format.asbool(self.parameter('showcpu', True)): - widget = core.widget.Widget(full_text=self.__cpu) + widget = core.widget.Widget(full_text=self.__cpu, module=self) widget.set('type', 'cpu') widgets.append(widget) @@ -88,7 +88,7 @@ class Module(core.module.Module): for package in self.__data[adapter]: if util.format.asbool(self.parameter('showname', False)): - widget = core.widget.Widget(full_text=package) + widget = core.widget.Widget(full_text=package, module=self) widget.set('data', self.__data[adapter][package]) widget.set('package', package) widget.set('field', '') @@ -115,7 +115,7 @@ class Module(core.module.Module): except: pass - widget = core.widget.Widget() + widget = core.widget.Widget(module=self) widget.set('package', package) widget.set('field', field) widget.set('adapter', adapter)