From 0a0248d8b201ba58a98bc47d8080bfd35fd2371b Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Tue, 26 Apr 2022 10:16:36 -0700 Subject: [PATCH] gui: fixed issue where wireless edges were not properly attempting to arc common edges when added/deleted --- daemon/core/gui/graph/edges.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/core/gui/graph/edges.py b/daemon/core/gui/graph/edges.py index 405ef658..82fd0b97 100644 --- a/daemon/core/gui/graph/edges.py +++ b/daemon/core/gui/graph/edges.py @@ -416,6 +416,8 @@ class Edge: self.src_label2 = None self.dst_label = None self.dst_label2 = None + if self.dst: + self.arc_common_edges() def hide(self) -> None: self.hidden = True @@ -507,6 +509,7 @@ class CanvasWirelessEdge(Edge): if self.src.hidden or self.dst.hidden: self.hide() self.set_binding() + self.arc_common_edges() def set_binding(self) -> None: self.src.canvas.tag_bind(self.id, "", self.show_info) @@ -758,6 +761,4 @@ class CanvasEdge(Edge): self.src.delete_antenna() self.app.core.deleted_canvas_edges([self]) super().delete() - if self.dst: - self.arc_common_edges() self.manager.edges.pop(self.token, None)