Merge pull request #89 from yvesh/dontdrawwidgetwhenempty
[Output] Only draw widget when full text is not empty
This commit is contained in:
commit
8fba2f1809
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ class I3BarOutput(object):
|
||||||
def draw(self, widget, module=None, engine=None):
|
def draw(self, widget, module=None, engine=None):
|
||||||
"""Draw a single widget"""
|
"""Draw a single widget"""
|
||||||
full_text = widget.full_text()
|
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)
|
padding = self._theme.padding(widget)
|
||||||
prefix = self._theme.prefix(widget, padding)
|
prefix = self._theme.prefix(widget, padding)
|
||||||
suffix = self._theme.suffix(widget, padding)
|
suffix = self._theme.suffix(widget, padding)
|
||||||
|
|
Loading…
Reference in a new issue