- minor fixes in the Milling Plugin

This commit is contained in:
Marius Stanciu
2022-02-15 16:26:09 +02:00
committed by Marius
parent d13b4ef14f
commit a1a999b635
3 changed files with 5 additions and 2 deletions

View File

@@ -853,9 +853,11 @@ class ToolMilling(AppTool, Excellon):
new_uid = 1
for current_uid in current_uid_list:
new_tools[new_uid] = deepcopy(self.iso_tools[current_uid])
new_tools[new_uid] = deepcopy(self.target_obj.tools[current_uid])
new_uid += 1
self.target_obj.tools = new_tools
# the tools table changed therefore we need to rebuild it
QtCore.QTimer.singleShot(20, self.build_ui)