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:
parent
c506eda20a
commit
2894085c45
@ -138,6 +138,9 @@ var StreamSlider = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_notifyVolumeChange() {
|
_notifyVolumeChange() {
|
||||||
|
if (this._stream.state === Gvc.MixerStreamState.RUNNING)
|
||||||
|
return; // feedback not necessary while playing
|
||||||
|
|
||||||
if (this._volumeCancellable)
|
if (this._volumeCancellable)
|
||||||
this._volumeCancellable.cancel();
|
this._volumeCancellable.cancel();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user