mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 11:36:11 +08:00
Prefer description over nick for node name
This commit is contained in:
committed by
Tom A. Wagner
parent
146fb65dc5
commit
fe05282f5a
@@ -109,8 +109,8 @@ fn handle_node(
|
|||||||
// Get the nicest possible name for the node, using a fallback chain of possible name attributes.
|
// Get the nicest possible name for the node, using a fallback chain of possible name attributes.
|
||||||
let name = String::from(
|
let name = String::from(
|
||||||
props
|
props
|
||||||
.get("node.nick")
|
.get("node.description")
|
||||||
.or_else(|| props.get("node.description"))
|
.or_else(|| props.get("node.nick"))
|
||||||
.or_else(|| props.get("node.name"))
|
.or_else(|| props.get("node.name"))
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user