We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8688b54 commit f787c83Copy full SHA for f787c83
subscriptions/sound/src/pipewire/node.rs
@@ -90,11 +90,15 @@ impl Node {
90
object_id: object_id?,
91
device_id,
92
media_class: media_class?,
93
- description: node_description
94
- .strip_suffix(profile_description)
95
- .unwrap_or(node_description)
96
- .trim_ascii_end()
97
- .to_owned(),
+ description: if profile_description.is_empty() {
+ node_description.to_owned()
+ } else {
+ let device_name = node_description
+ .strip_suffix(profile_description)
98
+ .unwrap_or(node_description)
99
+ .trim_ascii_end();
100
+ [profile_description, " - ", device_name].concat()
101
+ },
102
icon_name,
103
audio_channels,
104
audio_position,
0 commit comments