From 1b62b7ea0a8aff38ef8c6873cb8b7651abe24044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 25 Nov 2022 17:08:51 +0100 Subject: [PATCH] status/volume: Clear device menus when unsetting stream Otherwise we end up accumulating devices when pipewire crashes or is restarted. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6142 Part-of: --- js/ui/status/volume.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index bd49cc3ae..57e179974 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -83,6 +83,8 @@ const StreamSlider = GObject.registerClass({ this._connectStream(this._stream); this._updateVolume(); } else { + this._deviceSection.removeAll(); + this._deviceItems.clear(); this.emit('stream-updated'); }