Merge pull request #3511 from hacrvlq/wireplumber-fix
Accept "default-node-changed" signals from wireplumber, even if only the node ID is changed
This commit is contained in:
commit
21906f07b3
|
@ -163,7 +163,8 @@ void waybar::modules::Wireplumber::onDefaultNodesApiChanged(waybar::modules::Wir
|
||||||
"[{}]: (onDefaultNodesApiChanged) - got the following default node: Node(name: {}, id: {})",
|
"[{}]: (onDefaultNodesApiChanged) - got the following default node: Node(name: {}, id: {})",
|
||||||
self->name_, defaultNodeName, defaultNodeId);
|
self->name_, defaultNodeName, defaultNodeId);
|
||||||
|
|
||||||
if (g_strcmp0(self->default_node_name_, defaultNodeName) == 0) {
|
if (g_strcmp0(self->default_node_name_, defaultNodeName) == 0 &&
|
||||||
|
self->node_id_ == defaultNodeId) {
|
||||||
spdlog::debug(
|
spdlog::debug(
|
||||||
"[{}]: (onDefaultNodesApiChanged) - Default node has not changed. Node(name: {}, id: {}). "
|
"[{}]: (onDefaultNodesApiChanged) - Default node has not changed. Node(name: {}, id: {}). "
|
||||||
"Ignoring.",
|
"Ignoring.",
|
||||||
|
|
Loading…
Reference in New Issue