Revert "status/volume: Clear device menus when unsetting stream"

Device additions/removals are tracked by GvcMixerControl, which
doesn't change when unsetting the stream. So clearing the menu
manually was a workaround, not a fix.

It's also worth noting that I failed to reproduce the original
issue again, so it's possible that we were working around a
pipewire bug that has since been fixed.

This reverts commit 1b62b7ea0a.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2616>
This commit is contained in:
Florian Müllner 2022-12-12 18:28:04 +01:00 committed by Marge Bot
parent 0957675ce4
commit 3de828cc60

View File

@ -83,8 +83,6 @@ const StreamSlider = GObject.registerClass({
this._connectStream(this._stream); this._connectStream(this._stream);
this._updateVolume(); this._updateVolume();
} else { } else {
this._deviceSection.removeAll();
this._deviceItems.clear();
this.emit('stream-updated'); this.emit('stream-updated');
} }