- improvements in the Punch Gerber Tool aperture markings

- improved the Geometry Object functionality in regards of Tools DB, deleting a tool and adding a tool
- when using the 'T' shortcut key with Properties Tab in focus and populated with the properties of a Geometry Object made the popped up spinner to have the value autoselected
This commit is contained in:
Marius Stanciu
2020-10-30 04:09:23 +02:00
committed by Marius
parent 21f5090372
commit 084643eb95
5 changed files with 45 additions and 11 deletions

View File

@@ -995,9 +995,8 @@ class GerberObject(FlatCAMObj, Gerber):
else:
visibility = kwargs['visible']
with self.app.proc_container.new(_("Plotting Apertures")):
def job_thread(app_obj):
def job_thread(app_obj):
with self.app.proc_container.new(_("Plotting Apertures")):
try:
if aperture_to_plot_mark in self.apertures:
for elem in app_obj.apertures[aperture_to_plot_mark]['geometry']:
@@ -1022,10 +1021,10 @@ class GerberObject(FlatCAMObj, Gerber):
except Exception as e:
log.debug("GerberObject.plot_aperture() --> %s" % str(e))
if run_thread:
self.app.worker_task.emit({'fcn': job_thread, 'params': [self]})
else:
job_thread(self)
if run_thread:
self.app.worker_task.emit({'fcn': job_thread, 'params': [self]})
else:
job_thread(self)
def clear_plot_apertures(self, aperture='all'):
"""