From a705adf2071ad62c0c1c940189a4fcfb7f535533 Mon Sep 17 00:00:00 2001 From: Tobi-wan Kenobi Date: Tue, 20 Dec 2016 07:49:21 +0100 Subject: [PATCH] [modules/pulseaudio] Fix status extraction With multiple devices, extracting mute status and volumes failed (because the loop would continue even after it found the correct device) --- bumblebee/modules/pulseaudio.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/pulseaudio.py b/bumblebee/modules/pulseaudio.py index 7578438..07fbd8d 100644 --- a/bumblebee/modules/pulseaudio.py +++ b/bumblebee/modules/pulseaudio.py @@ -87,13 +87,14 @@ class Module(bumblebee.engine.Module): for line in result.split("\n"): if device in line: found = True + continue if found == False: continue for pattern in self._patterns: if not pattern["expr"] in line: continue - if pattern["callback"](line) == False: - break + if pattern["callback"](line) == False and found == True: + return def state(self, widget): if self._mute: