gui: adjustment to update drawing asymmetric edge data when joining a session
This commit is contained in:
parent
6791269eeb
commit
d5b05a39e8
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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,7 +1063,9 @@ class CoreNetworkBase(NodeBase):
|
|||
continue
|
||||
if iface.local_options != iface.options:
|
||||
unidirectional = 1
|
||||
iface_data = iface.get_data()
|
||||
iface_data = None
|
||||
else:
|
||||
iface_data = iface.get_data()
|
||||
link_data = LinkData(
|
||||
message_type=flags,
|
||||
type=self.linktype,
|
||||
|
|
Loading…
Reference in a new issue