Merge pull request #364 from coreemu/coretk-enhance/fix-bug

Coretk enhance/fix bug
This commit is contained in:
bharnden 2020-02-04 09:53:48 -08:00 committed by GitHub
commit 26a03cc758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 5 deletions

View file

@ -854,6 +854,11 @@ class CanvasGraph(tk.Canvas):
node = CanvasNode(
self.master, scaled_x, scaled_y, copy, self.nodes[canvas_nid].image
)
# add new node to modified_service_nodes set if that set contains the to_copy node
if self.app.core.service_been_modified(core_node.id):
self.app.core.modified_service_nodes.add(copy.id)
copy_map[canvas_nid] = node.id
self.core.canvas_nodes[copy.id] = node
self.nodes[node.id] = node