- fixed issue where the annotations for all the CNCJob objects are toggled together whenever the ones for an single object are toggled

This commit is contained in:
Marius Stanciu
2019-08-11 03:15:04 +03:00
parent 9ef7b2668c
commit a4728e966e
2 changed files with 4 additions and 3 deletions

View File

@@ -358,7 +358,7 @@ class FlatCAMObj(QtCore.QObject):
pass
if threaded is False:
worker_task(self)
worker_task(app_obj=self)
else:
self.app.worker_task.emit({'fcn': worker_task, 'params': [self]})
@@ -5937,9 +5937,9 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob):
self.annotation.clear(update=True)
if self.ui.annotation_cb.get_value() and self.ui.plot_cb.get_value():
self.app.plotcanvas.text_collection.enabled = True
self.annotation.enabled = True
else:
self.app.plotcanvas.text_collection.enabled = False
self.annotation.enabled = False
def on_annotation_change(self):
if self.ui.annotation_cb.get_value():