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.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/53
This commit is contained in:
Florian Müllner 2019-11-22 18:37:25 +01:00
parent c506eda20a
commit 2894085c45

View File

@ -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();