From 47b345fc37304a872aeee1dc21a2bb43e68939b7 Mon Sep 17 00:00:00 2001 From: Adam Obuchowicz Date: Tue, 22 Dec 2020 16:00:53 +0100 Subject: [PATCH] fix: Update edges on node expression updates. (https://github.com/enso-org/ide/pull/1082) authored-by: Michael Mauderer Original commit: https://github.com/enso-org/ide/commit/7a4b3bdbaf76b8c3919bcf298632424352213d39 --- gui/src/rust/ide/src/view/integration.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/src/rust/ide/src/view/integration.rs b/gui/src/rust/ide/src/view/integration.rs index b3b7256afbb..daac3fa418e 100644 --- a/gui/src/rust/ide/src/view/integration.rs +++ b/gui/src/rust/ide/src/view/integration.rs @@ -475,8 +475,9 @@ impl Model { /// Refresh the expressions (e.g., types, ports) for all nodes. fn refresh_graph_expressions(&self) -> FallibleResult { info!(self.logger, "Refreshing the graph expressions."); - let trees = self.graph.connections()?.trees; - self.refresh_node_views(trees, false) + let controller::graph::Connections{trees,connections} = self.graph.connections()?; + self.refresh_node_views(trees, false)?; + self.refresh_connection_views(connections) } /// Retain only given nodes in displayed graph. @@ -735,7 +736,7 @@ impl Model { debug!(self.logger, "Received notification {notification:?}"); let result = match notification { Some(Notification::Graph(Invalidate)) => self.on_graph_invalidated(), - Some(Notification::Graph(PortsUpdate)) => self.on_graph_expression_update(), + Some(Notification::Graph(PortsUpdate)) => self.on_graph_expression_update(), Some(Notification::ComputedValueInfo(update)) => self.on_values_computed(update), Some(Notification::SteppedOutOfNode(id)) => self.on_node_exited(*id), Some(Notification::EnteredNode(local_call)) => self.on_node_entered(local_call),