Commit 2894085c authored by Florian Müllner's avatar Florian Müllner

volume: Skip volume-change feedback while playing

The audio feedback for volume changes is useful when nothing is outputting
sound, but only then. Skip the sound notification in that case.

GNOME/gnome-shell#53
parent c506eda2
......@@ -138,6 +138,9 @@ var StreamSlider = class {
}
_notifyVolumeChange() {
if (this._stream.state === Gvc.MixerStreamState.RUNNING)
return; // feedback not necessary while playing
if (this._volumeCancellable)
this._volumeCancellable.cancel();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment