- major refactoring: started to move the methods connected to the Edit menu to their own class to clean up the App mega class

This commit is contained in:
Marius Stanciu
2024-03-28 14:49:05 +02:00
parent d583bb8cf2
commit e7cd73fde1
17 changed files with 766 additions and 726 deletions

View File

@@ -217,7 +217,9 @@ class AppObject(QtCore.QObject):
obj.moveToThread(self.app.main_thread)
if return_value == 'drill_gx2':
self.object_created.emit(obj, obj_plot, obj_autoselected, self.app.convert_any2excellon, [name])
self.object_created.emit(obj, obj_plot, obj_autoselected,
self.app.edit_class.convert_any2excellon,
[name])
self.app.log.warning("Gerber X2 drill file detected. Converted to Excellon object.")
self.app.inform.emit('[WARNING] %s' % _("Gerber X2 drill file detected. Converted to Excellon object."))
else: