Activate info message when delete via is choosen

This commit is contained in:
Jean-Samuel Reynaud
2022-03-23 13:55:45 +01:00
parent 073e3b7239
commit 9a4c0396ec
2 changed files with 6 additions and 6 deletions

View File

@ -362,11 +362,6 @@ STEP = '-'
print("Group {} Found !".format(VIA_GROUP_NAME))
self.pcb_group = i
if self.pcb_group is None:
self.pcb_group = PCB_GROUP(None)
self.pcb_group.SetName(VIA_GROUP_NAME)
self.pcb.Add(self.pcb_group)
"""
Launch the process
"""
@ -377,6 +372,11 @@ STEP = '-'
"To delete vias:\n - select one of the generated via to select the group of vias named {}\n - hit delete key\n - That's all !".format(VIA_GROUP_NAME), "Information")
return # no need to run the rest of logic
if self.pcb_group is None:
self.pcb_group = PCB_GROUP(None)
self.pcb_group.SetName(VIA_GROUP_NAME)
self.pcb.Add(self.pcb_group)
if self.debug:
print("%s: Line %u" % (time.time(), currentframe().f_lineno))
target_tracks = self.pcb.GetTracks()