mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:55:51 +08:00
Moved plugins that need to be loaded to own function
This commit is contained in:
parent
0c18161d13
commit
4d082bad25
@ -20,8 +20,8 @@ class PrinterApplication(QtApplication):
|
||||
self.setApplicationName('printer')
|
||||
self._machine_settings.loadSettingsFromFile(Resources.getPath(Resources.SettingsLocation, "ultimaker2.json"))
|
||||
self._physics = None
|
||||
|
||||
def run(self):
|
||||
|
||||
def _loadPlugins(self):
|
||||
self._plugin_registry.loadPlugins({ "type": "Logger"})
|
||||
self._plugin_registry.loadPlugins({ "type": "StorageDevice" })
|
||||
self._plugin_registry.loadPlugins({ "type": "View" })
|
||||
@ -29,6 +29,9 @@ class PrinterApplication(QtApplication):
|
||||
self._plugin_registry.loadPlugins({ "type": "Tool" })
|
||||
|
||||
self._plugin_registry.loadPlugin('CuraEngineBackend')
|
||||
|
||||
def run(self):
|
||||
|
||||
|
||||
controller = self.getController()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user