- made changing the Plot kind in CNCJob selected tab, threaded

This commit is contained in:
Marius Stanciu
2019-09-10 04:44:18 +03:00
committed by Marius
parent 7f3e3cb061
commit 02be0b8510
2 changed files with 7 additions and 1 deletions

View File

@@ -5894,7 +5894,12 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob):
def on_plot_kind_change(self):
kind = self.ui.cncplot_method_combo.get_value()
self.plot(kind=kind)
def worker_task():
with self.app.proc_container.new(_("Plotting...")):
self.plot(kind=kind)
self.app.worker_task.emit({'fcn': worker_task, 'params': []})
def on_exportgcode_button_click(self, *args):
self.app.report_usage("cncjob_on_exportgcode_button")