create variable just before using it

This commit is contained in:
me 2020-01-31 11:47:21 +02:00
parent 4a7a26456d
commit a3cfe0abbe

View file

@ -365,8 +365,6 @@ class WidgetDrawer(object):
separator = self._theme.separator(widget)
self.add_separator(widget, separator)
full_text = widget.full_text()
padding = self._theme.padding(widget)
self._prefix = self._theme.prefix(widget, padding)
@ -382,6 +380,8 @@ class WidgetDrawer(object):
self._prefix
)
full_text = widget.full_text()
if self._prefix:
full_text = u"{}{}".format(self._prefix, full_text)
if self._suffix: