From c80dd621696ace2889d7df51a88079bb96c8af66 Mon Sep 17 00:00:00 2001 From: joeydelarago Date: Mon, 22 Aug 2022 16:34:18 +0200 Subject: [PATCH] Fix circular import. CURA-9277 --- cura/Settings/AbstractMachine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cura/Settings/AbstractMachine.py b/cura/Settings/AbstractMachine.py index 3a8dbd54ea..a89201a294 100644 --- a/cura/Settings/AbstractMachine.py +++ b/cura/Settings/AbstractMachine.py @@ -1,7 +1,6 @@ from typing import List from UM.Settings.ContainerStack import ContainerStack -from cura.CuraApplication import CuraApplication from cura.PrinterOutput.PrinterOutputDevice import ConnectionType from cura.Settings.GlobalStack import GlobalStack from UM.MimeTypeDatabase import MimeType, MimeTypeDatabase @@ -16,6 +15,8 @@ class AbstractMachine(GlobalStack): self.setMetaDataEntry("type", "abstract_machine") def getMachines(self) -> List[ContainerStack]: + from cura.CuraApplication import CuraApplication + application = CuraApplication.getInstance() registry = application.getContainerRegistry()