Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Deselect visualization when its node gets removed #1556

Merged
merged 8 commits into from
May 13, 2021
Merged
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#### Visual Environment

- [Delete key will delete selected nodes][1538].
- [It is possible to move around after deleting a selected visualization][1556].
s9ferech marked this conversation as resolved.
Show resolved Hide resolved

#### EnsoGL (rendering engine)

Expand Down
1 change: 1 addition & 0 deletions src/rust/ide/view/graph-editor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,7 @@ impl GraphEditorModel {
let node_id = node_id.into();
self.nodes.remove(&node_id);
self.nodes.selected.remove_item(&node_id);
self.frp.source.on_visualization_select.emit(Switch::Off(node_id));
s9ferech marked this conversation as resolved.
Show resolved Hide resolved
}

fn node_in_edges(&self, node_id:impl Into<NodeId>) -> Vec<EdgeId> {
Expand Down