gui: adjustment to update drawing asymmetric edge data when joining a session

This commit is contained in:
Blake Harnden 2022-01-26 11:19:30 -08:00
parent 6791269eeb
commit d5b05a39e8
2 changed files with 5 additions and 2 deletions

View file

@ -395,6 +395,7 @@ class CanvasManager:
if token in self.edges and link.options.unidirectional:
edge = self.edges[token]
edge.asymmetric_link = link
edge.redraw()
elif token not in self.edges:
edge = CanvasEdge(self.app, src, dst)
edge.complete(dst, link)

View file

@ -1055,7 +1055,7 @@ class CoreNetworkBase(NodeBase):
unidirectional = 0
linked_node = iface.node
if linked_node is None:
# two layer-2 switches/hubs linked together via linknet()
# two layer-2 switches/hubs linked together
if not iface.othernet:
continue
linked_node = iface.othernet
@ -1063,6 +1063,8 @@ class CoreNetworkBase(NodeBase):
continue
if iface.local_options != iface.options:
unidirectional = 1
iface_data = None
else:
iface_data = iface.get_data()
link_data = LinkData(
message_type=flags,