pygui: fixed link options check when options is not present
This commit is contained in:
parent
e817a24275
commit
68934da204
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue