mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +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>
This commit is contained in:
parent
e752aa75fc
commit
1b62b7ea0a
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