pygui: removed restriction on wlan nodes context linking to mdrs only, since custom nodes and other types may be configured and desired to be linked in the same way
This commit is contained in:
parent
944040608e
commit
4379ef32e9
1 changed files with 4 additions and 6 deletions
|
@ -312,12 +312,10 @@ class CanvasNode:
|
|||
return result
|
||||
|
||||
def wireless_link_selected(self):
|
||||
for canvas_nid in [
|
||||
x for x in self.canvas.selection if "node" in self.canvas.gettags(x)
|
||||
]:
|
||||
core_node = self.canvas.nodes[canvas_nid].core_node
|
||||
if core_node.type == core_pb2.NodeType.DEFAULT and core_node.model == "mdr":
|
||||
self.canvas.create_edge(self, self.canvas.nodes[canvas_nid])
|
||||
nodes = [x for x in self.canvas.selection if x in self.canvas.nodes]
|
||||
for node_id in nodes:
|
||||
canvas_node = self.canvas.nodes[node_id]
|
||||
self.canvas.create_edge(self, canvas_node)
|
||||
self.canvas.clear_selection()
|
||||
|
||||
def scale_antennas(self):
|
||||
|
|
Loading…
Reference in a new issue