[modules/cmus] Always initialize variables
Initialize shuffle and repeat status variables even if cmus is not running at all.
This commit is contained in:
parent
36d723e7e6
commit
d37068b442
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ class Module(bumblebee.module.Module):
|
||||||
|
|
||||||
def _tags(self):
|
def _tags(self):
|
||||||
tags = defaultdict(lambda: '')
|
tags = defaultdict(lambda: '')
|
||||||
|
self._repeat = False
|
||||||
|
self._shuffle = False
|
||||||
for line in self._query:
|
for line in self._query:
|
||||||
if line.startswith("status"):
|
if line.startswith("status"):
|
||||||
status = line.split(" ", 2)[1]
|
status = line.split(" ", 2)[1]
|
||||||
|
|
Loading…
Reference in a new issue