status/volume: Include origin in device names
The description alone may not be descriptive enough, so include the origin (if available) to disambiguate the name. This is consistent with the Sound Settings panel. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5829 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2502>
This commit is contained in:
parent
f5c29de580
commit
0ce2bc343b
@ -113,8 +113,11 @@ const StreamSlider = GObject.registerClass({
|
|||||||
if (!device)
|
if (!device)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const item = new PopupMenu.PopupImageMenuItem(
|
const {description, origin} = device;
|
||||||
device.get_description(), device.get_gicon());
|
const name = origin
|
||||||
|
? `${description} – ${origin}`
|
||||||
|
: description;
|
||||||
|
const item = new PopupMenu.PopupImageMenuItem(name, device.get_gicon());
|
||||||
item.connect('activate', () => this._activateDevice(device));
|
item.connect('activate', () => this._activateDevice(device));
|
||||||
|
|
||||||
this._deviceSection.addMenuItem(item);
|
this._deviceSection.addMenuItem(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user