pygui: fixed link options check when options is not present

This commit is contained in:
Blake Harnden 2020-10-13 09:12:10 -07:00
parent e817a24275
commit 68934da204

View file

@ -339,6 +339,8 @@ class CanvasEdge(Edge):
self.draw_labels()
def check_options(self) -> None:
if not self.link.options:
return
if self.link.options.loss == EDGE_LOSS:
state = tk.HIDDEN
self.canvas.addtag_withtag(tags.LOSS_EDGES, self.id)