Merge pull request #226 from caianrais/brightness-format-fix
[modules/brightness] Fix return format
This commit is contained in:
commit
519dc1dafe
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class Module(bumblebee.engine.Module):
|
|||
|
||||
def brightness(self, widget):
|
||||
if isinstance(self._brightness, float):
|
||||
return "{:03.0f}%".format(self._brightness)
|
||||
return "{:3.0f}%".format(self._brightness).strip()
|
||||
else:
|
||||
return "n/a"
|
||||
|
||||
|
|
Loading…
Reference in a new issue