[modules/nic] Fix status display
First, cache lookups were bugged... Second, the output needs to call data() first, everything else later. This is a bit nasty, and I'll consider re-visiting this, but right now, I don't see any other way, given that modules can now be iterated.
This commit is contained in:
parent
0f6b418385
commit
f29ddae47a
2 changed files with 5 additions and 3 deletions
|
@ -16,8 +16,9 @@ class i3bar(bumblebee.output.Output):
|
|||
theme = self.theme()
|
||||
|
||||
while True:
|
||||
d = obj.data()
|
||||
data = {
|
||||
u"full_text": "{}{}{}".format(theme.prefix(obj), obj.data(), theme.suffix(obj)),
|
||||
u"full_text": "{}{}{}".format(theme.prefix(obj), d, theme.suffix(obj)),
|
||||
"color": theme.color(obj),
|
||||
"background": theme.background(obj),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue