mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2558>
(cherry picked from commit 1b62b7ea0a)
This commit is contained in:
parent
ac5a3d9c64
commit
792554e0d6
1 changed files with 2 additions and 0 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue