app: Use the new PropertyExt interface from Graphview

This commit is contained in:
Stéphane Cerveau 2022-01-21 16:44:48 +01:00
parent 17ecce9748
commit f483b51c9e
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ use crate::ui as GPSUI;
use crate::{GPS_DEBUG, GPS_ERROR, GPS_INFO, GPS_TRACE, GPS_WARN};
use crate::graphmanager::{GraphView, PortDirection, PortPresence};
use crate::graphmanager::{GraphView, PortDirection, PortPresence, PropertyExt};
#[derive(Debug)]
pub struct GPSAppInner {
@ -696,7 +696,7 @@ impl GPSApp {
pub fn element_property(&self, node_id: u32, property_name: &str) -> Option<String> {
let node = self.graphview.borrow().node(node_id).unwrap();
node.property(property_name)
PropertyExt::property(&node, property_name)
}
fn clear_graph(&self) {

View file

@ -17,7 +17,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
use crate::graphmanager::{GraphView, Node, NodeType, PortDirection};
use crate::graphmanager::{GraphView, Node, NodeType, PortDirection, PropertyExt};
use crate::logger;
use crate::ui::message as GPSMessage;
use crate::GPS_INFO;