mirror of
https://github.com/powerline/powerline.git
synced 2025-09-23 18:08:52 +02:00
Do not recreate layout if not needed
This commit is contained in:
parent
5ee860ba8a
commit
479e6afb2a
@ -43,6 +43,9 @@ class PowerlineTextBox(TextBox):
|
|||||||
|
|
||||||
def _configure(self, qtile, bar):
|
def _configure(self, qtile, bar):
|
||||||
super(PowerlineTextBox, self)._configure(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.layout = self.drawer.textlayout(
|
||||||
self.text,
|
self.text,
|
||||||
self.foreground,
|
self.foreground,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user