- more refactoring; solved some issues introduced by the refactoring

This commit is contained in:
Marius Stanciu
2020-05-18 18:45:53 +03:00
committed by Marius
parent 2bcdeff7ef
commit d61ca10e75
47 changed files with 136 additions and 159 deletions

View File

@@ -292,7 +292,7 @@ class AppObject(QtCore.QObject):
self.app.collection.append(obj)
# after adding the object to the collection always update the list of objects that are in the collection
self.all_objects_list = self.app.collection.get_list()
self.app.all_objects_list = self.app.collection.get_list()
# self.app.inform.emit('[selected] %s created & selected: %s' %
# (str(obj.kind).capitalize(), str(obj.options['name'])))
@@ -358,7 +358,7 @@ class AppObject(QtCore.QObject):
# Send to worker
# self.worker.add_task(worker_task, [self])
if plot is True:
self.worker_task.emit({'fcn': task, 'params': [obj]})
self.app.worker_task.emit({'fcn': task, 'params': [obj]})
def on_object_changed(self, obj):
"""
@@ -390,4 +390,4 @@ class AppObject(QtCore.QObject):
:return: None
"""
self.app.on_zoom_fit(None)
self.app.on_zoom_fit()