[Output] Only draw widget when full text is not empty
This commit is contained in:
parent
541b6e68c2
commit
ec2b39f04c
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ class I3BarOutput(object):
|
|||
def draw(self, widget, module=None, engine=None):
|
||||
"""Draw a single widget"""
|
||||
full_text = widget.full_text()
|
||||
"""Don't draw it when we only have an empty text"""
|
||||
if full_text == "":
|
||||
return
|
||||
padding = self._theme.padding(widget)
|
||||
prefix = self._theme.prefix(widget, padding)
|
||||
suffix = self._theme.suffix(widget, padding)
|
||||
|
|
Loading…
Reference in a new issue