policy-node: use default-nodes-api plugin

This commit is contained in:
George Kiagiadakis
2021-03-31 13:09:24 +03:00
parent 0bc257b6c3
commit 0ecefcb55d
5 changed files with 25 additions and 18 deletions

View File

@@ -192,6 +192,9 @@ on_metadata_changed (WpMetadata *m, guint32 subject,
self->defaults[node_t].config_value = g_strdup (name);
}
wp_debug_object (m, "changed '%s' -> '%s'", key,
self->defaults[node_t].config_value);
/* re-evaluate the default, taking into account the new configured default;
block recursive calls to this handler as an optimization */
g_signal_handlers_block_by_func (m, on_metadata_changed, d);