From 4d082bad25271e21c9a7a0fa91c286521ef415e9 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 21 Jan 2015 10:45:19 +0100 Subject: [PATCH] Moved plugins that need to be loaded to own function --- PrinterApplication.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PrinterApplication.py b/PrinterApplication.py index c58c25540d..320fedbb68 100644 --- a/PrinterApplication.py +++ b/PrinterApplication.py @@ -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()