[Output] Only draw widget when full text is not empty

This commit is contained in:
Yves Hoppe 2017-05-26 21:36:01 +02:00
parent 541b6e68c2
commit ec2b39f04c
No known key found for this signature in database
GPG key ID: ADBC67C615D70A63

View file

@ -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)