[modules/cmus] Update to latest API
This commit is contained in:
parent
a943e65ed7
commit
32444ed49f
3 changed files with 25 additions and 21 deletions
|
@ -153,7 +153,10 @@ class i3(object):
|
|||
if widget.get('pango', False):
|
||||
blk.set('markup', 'pango')
|
||||
if self.__config.debug():
|
||||
blk.set('__state', ', '.join(module.state(widget)))
|
||||
state = module.state(widget)
|
||||
if isinstance(state, list):
|
||||
state = ', '.join(state)
|
||||
blk.set('__state', state)
|
||||
return blk
|
||||
|
||||
def blocks(self, module):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue