- fixed the issue in Milling Plugin that did not automatically set the object combo to the previously selected object

This commit is contained in:
Marius Stanciu
2021-09-01 23:16:17 +03:00
committed by Marius
parent 290647a2be
commit 2e23b8590b
6 changed files with 56 additions and 36 deletions

View File

@@ -686,9 +686,6 @@ class ExcellonObject(FlatCAMObj, Excellon):
def on_milling_button_clicked(self):
self.app.milling_tool.run(toggle=True)
self.app.milling_tool.ui.target_radio.set_value('exc')
current_obj = self.app.collection.get_active()
self.app.milling_tool.ui.object_combo.set_value(current_obj.options['name'])
def export_excellon(self, whole, fract, e_zeros=None, form='dec', factor=1, slot_type='routing'):
"""

View File

@@ -462,9 +462,6 @@ class GeometryObject(FlatCAMObj, Geometry):
def on_milling_button_clicked(self):
self.app.milling_tool.run(toggle=True)
self.app.milling_tool.ui.target_radio.set_value('geo')
current_obj = self.app.collection.get_active()
self.app.milling_tool.ui.object_combo.set_value(current_obj.options['name'])
def on_calculate_vertex_points(self):
self.app.log.debug("GeometryObject.on_calculate_vertex_points()")