Merge pull request #411 from jcornwall/master
Pulseaudio: Update status immediately when volume changes
This commit is contained in:
commit
0974f2547a
@ -88,6 +88,10 @@ class Module(SettingsBase):
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
def send_output(self):
|
||||
"""Send a status update with the current module output"""
|
||||
self.__status_handler.io.async_refresh()
|
||||
|
||||
def __log_button_event(self, button, cb, args, action, **kwargs):
|
||||
msg = "{}: button={}, cb='{}', args={}, kwargs={}, type='{}'".format(
|
||||
self.__name__, button, cb, args, kwargs, action)
|
||||
|
@ -177,6 +177,8 @@ class PulseAudio(Module, ColorRangeModule):
|
||||
volume_bar=volume_bar),
|
||||
}
|
||||
|
||||
self.send_output()
|
||||
|
||||
def change_sink(self):
|
||||
curr_sink = self.sink
|
||||
sinks = list(s.split()[1] for s in self.sinks)
|
||||
|
Loading…
Reference in New Issue
Block a user