Do not recreate layout if not needed

This commit is contained in:
ZyX 2015-02-20 16:39:08 +03:00
parent 5ee860ba8a
commit 479e6afb2a
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ class PowerlineTextBox(TextBox):
def _configure(self, qtile, bar):
super(PowerlineTextBox, self)._configure(qtile, bar)
if self.layout.markup:
# QTile-0.9.1: no need to recreate layout or run timer_setup
return
self.layout = self.drawer.textlayout(
self.text,
self.foreground,