grpc: update node events to include icon, pygui: updated handling node events to update icon when there is a change

This commit is contained in:
Blake Harnden 2020-08-05 12:10:27 -07:00
parent 8004be6e7c
commit b89a19a18e
3 changed files with 14 additions and 2 deletions

View file

@ -241,6 +241,8 @@ class CoreClient:
x = node.position.x
y = node.position.y
canvas_node.move(x, y)
if node.icon and node.icon != canvas_node.core_node.icon:
canvas_node.update_icon(node.icon)
elif event.message_type == MessageType.DELETE:
canvas_node = self.canvas_nodes[node.id]
self.app.canvas.clear_selection()