From 3de828cc608a0e48843c1d95c2e99d79a80505f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 12 Dec 2022 18:28:04 +0100 Subject: [PATCH] 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 1b62b7ea0a8aff38ef8c6873cb8b7651abe24044. Part-of: --- js/ui/status/volume.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 57e179974..bd49cc3ae 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -83,8 +83,6 @@ const StreamSlider = GObject.registerClass({ this._connectStream(this._stream); this._updateVolume(); } else { - this._deviceSection.removeAll(); - this._deviceItems.clear(); this.emit('stream-updated'); }