fix(wireplumber): Handle changes to the default node ID
This commit is contained in:
parent
79d3a1a296
commit
c468119f52
|
@ -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