- some fixes and prepared the activity monitor area to receive updated texts

This commit is contained in:
Marius Stanciu
2019-09-06 15:20:19 +03:00
parent 9f0b5d92db
commit c1ce72e9fb
7 changed files with 254 additions and 101 deletions

View File

@@ -3459,14 +3459,14 @@ class App(QtCore.QObject):
# here it is done the object plotting
def worker_task(t_obj):
with self.proc_container.new("Plotting"):
if isinstance(t_obj, FlatCAMCNCjob):
t_obj.plot(kind=self.defaults["cncjob_plot_kind"])
else:
t_obj.plot()
t1 = time.time() # DEBUG
self.log.debug("%f seconds adding object and plotting." % (t1 - t0))
self.object_plotted.emit(t_obj)
# with self.proc_container.new(_("Plotting")):
if isinstance(t_obj, FlatCAMCNCjob):
t_obj.plot(kind=self.defaults["cncjob_plot_kind"])
else:
t_obj.plot()
t1 = time.time() # DEBUG
self.log.debug("%f seconds adding object and plotting." % (t1 - t0))
self.object_plotted.emit(t_obj)
# Send to worker
# self.worker.add_task(worker_task, [self])