pygui: fixed checking link options when joining a session, fixed stopping a session and deleting wireless links due to logic moved to being a part of wireless edge delete itself
This commit is contained in:
parent
3c97f80614
commit
acaef00087
2 changed files with 6 additions and 5 deletions
|
@ -588,15 +588,18 @@ class CanvasEdge(Edge):
|
|||
return
|
||||
if self.link.options.loss == EDGE_LOSS:
|
||||
state = tk.HIDDEN
|
||||
if self.id:
|
||||
self.src.canvas.addtag_withtag(tags.LOSS_EDGES, self.id)
|
||||
if self.id2:
|
||||
self.dst.canvas.addtag_withtag(tags.LOSS_EDGES, self.id2)
|
||||
else:
|
||||
state = tk.NORMAL
|
||||
if self.id:
|
||||
self.src.canvas.dtag(self.id, tags.LOSS_EDGES)
|
||||
if self.id2:
|
||||
self.dst.canvas.dtag(self.id2, tags.LOSS_EDGES)
|
||||
if self.manager.show_loss_links.state() == tk.HIDDEN:
|
||||
if self.id:
|
||||
self.src.canvas.itemconfigure(self.id, state=state)
|
||||
if self.id2:
|
||||
self.dst.canvas.itemconfigure(self.id2, state=state)
|
||||
|
|
|
@ -285,8 +285,6 @@ class CanvasManager:
|
|||
# clear wireless edges
|
||||
for edge in self.wireless_edges.values():
|
||||
edge.delete()
|
||||
edge.src.wireless_edges.remove(edge)
|
||||
edge.dst.wireless_edges.remove(edge)
|
||||
self.wireless_edges.clear()
|
||||
self.clear_throughputs()
|
||||
|
||||
|
|
Loading…
Reference in a new issue