diff --git a/src/graphmanager/node.rs b/src/graphmanager/node.rs index f069132..da70f8c 100644 --- a/src/graphmanager/node.rs +++ b/src/graphmanager/node.rs @@ -350,6 +350,7 @@ impl PropertyExt for Node { let private = imp::Node::from_instance(self); trace!("property name={} removed", name); private.properties.borrow_mut().remove(name); + self.update_description(); } /// Retrieves node properties. diff --git a/src/graphmanager/property.rs b/src/graphmanager/property.rs index 2d1b789..fe2355d 100644 --- a/src/graphmanager/property.rs +++ b/src/graphmanager/property.rs @@ -16,9 +16,9 @@ // along with this program. If not, see . // // SPDX-License-Identifier: GPL-3.0-only +use log::info; use std::cell::Ref; use std::collections::HashMap; - pub trait PropertyExt { fn hidden_property(&self, name: &str) -> bool { name.starts_with('_') @@ -38,6 +38,7 @@ pub trait PropertyExt { /// fn update_properties(&self, new_properties: &HashMap) { for (key, value) in new_properties { + info!("Updating property name={} value={}", key, value); if value.is_empty() { self.remove_property(key); } else {