- in Fiducials Plugin added the support for ESCAPE key from manual mode and also exit by right clicking

- in Fiducials Plugin addressed the situation when no object is selected but there are available
- in Fiducials Plugin when adding manual fiducials now panning is allowed without cancelling the process of adding
- in Corners Plugin implemented the manual adding of markers
- in Corners Plugin added the support for ESCAPE key from manual mode and also exit by right clicking
This commit is contained in:
Marius Stanciu
2021-09-09 23:09:09 +03:00
committed by Marius
parent e0a158759c
commit 4b52196310
5 changed files with 187 additions and 22 deletions

View File

@@ -430,14 +430,17 @@ class ToolMilling(AppTool, Excellon):
if not selected_obj:
self.ui.target_radio.set_value('geo')
if selected_obj.kind == 'excellon':
self.ui.target_radio.set_value('exc')
self.ui.object_combo.set_value(selected_obj.options['name'])
if selected_obj.kind == 'geometry':
self.ui.target_radio.set_value('geo')
self.ui.object_combo.set_value(selected_obj.options['name'])
self.ui.object_combo.setCurrentIndex(0)
else:
if selected_obj.kind == 'excellon':
self.ui.target_radio.set_value('exc')
self.ui.object_combo.set_value(selected_obj.options['name'])
elif selected_obj.kind == 'geometry':
self.ui.target_radio.set_value('geo')
self.ui.object_combo.set_value(selected_obj.options['name'])
else:
self.ui.target_radio.set_value('geo')
self.ui.object_combo.setCurrentIndex(0)
except Exception as err:
self.app.log.error("ToolMilling.set_tool_ui() --> %s" % str(err))