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:
parent
8004be6e7c
commit
b89a19a18e
3 changed files with 14 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue