[all] black code :)
This commit is contained in:
parent
320827d577
commit
92577e7d26
14 changed files with 291 additions and 192 deletions
|
@ -121,15 +121,11 @@ class Module(core.module.Module):
|
|||
)
|
||||
|
||||
if util.format.asbool(self.parameter("compact-devices", False)):
|
||||
widget = self.add_widget(
|
||||
full_text=self.capacity, name="all-batteries"
|
||||
)
|
||||
widget = self.add_widget(full_text=self.capacity, name="all-batteries")
|
||||
else:
|
||||
for battery in self._batteries:
|
||||
log.debug("adding new widget for {}".format(battery))
|
||||
widget = self.add_widget(
|
||||
full_text=self.capacity, name=battery
|
||||
)
|
||||
widget = self.add_widget(full_text=self.capacity, name=battery)
|
||||
for w in self.widgets():
|
||||
if util.format.asbool(self.parameter("decorate", True)) == False:
|
||||
widget.set("theme.exclude", "suffix")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue