Fix updating issue with Qtile widget

This commit is contained in:
Kim Silkebækken 2013-01-30 10:53:28 +01:00
parent 597f67b85a
commit 7022b47ed9
1 changed files with 3 additions and 0 deletions

View File

@ -13,8 +13,11 @@ class Powerline(base._TextBox):
self.powerline = PowerlineCore(ext='wm', renderer_module='pango_markup')
def update(self):
if not self.configured:
return True
self.text = self.powerline.renderer.render(side='right')
self.bar.draw()
return True
def cmd_update(self, text):
self.update(text)