From dadeb87801557e66af7595510a430cd6130e717b Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Fri, 13 Feb 2015 18:05:45 +0100 Subject: [PATCH] Save/Load all machines from config files at startup --- PrinterApplication.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/PrinterApplication.py b/PrinterApplication.py index a0eb0dca73..edffec079e 100644 --- a/PrinterApplication.py +++ b/PrinterApplication.py @@ -46,11 +46,6 @@ class PrinterApplication(QtApplication): self._physics = PlatformPhysics(controller) - try: - self.getMachineSettings().loadValuesFromFile(Resources.getPath(Resources.SettingsLocation, 'ultimaker2.cfg')) - except FileNotFoundError: - pass - root = controller.getScene().getRoot() platform = Platform(root) @@ -100,7 +95,7 @@ class PrinterApplication(QtApplication): if self._engine.rootObjects: self.exec_() - self.getMachineSettings().saveValuesToFile(Resources.getStoragePath(Resources.SettingsLocation, 'ultimaker2.cfg')) + self.saveMachines() def registerObjects(self, engine): engine.rootContext().setContextProperty('Printer', self)