mirror of
https://github.com/enso-org/enso.git
synced 2025-01-02 01:02:05 +03:00
fix: Update edges on node expression updates. (https://github.com/enso-org/ide/pull/1082)
authored-by: Michael Mauderer <michael.mauderer@enso.org>
Original commit: 7a4b3bdbaf
This commit is contained in:
parent
5cce1c2550
commit
47b345fc37
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user