mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Resolve circular imports
Some of these are only used for the type checks. Contributes to issue CURA-6600.
This commit is contained in:
parent
b05784e607
commit
8e49991087
6 changed files with 28 additions and 12 deletions
|
@ -17,12 +17,11 @@ class ContainerTree:
|
|||
def __init__(self) -> None:
|
||||
self.machines = {} # type: Dict[str, MachineNode] # Mapping from definition ID to machine nodes.
|
||||
container_registry = ContainerRegistry.getInstance()
|
||||
container_registry.allMetadataLoaded.connect(self._reloadAll)
|
||||
container_registry.containerAdded.connect(self._machineAdded)
|
||||
self._reloadAll()
|
||||
self._loadAll()
|
||||
|
||||
## (Re)builds the initial container tree.
|
||||
def _reloadAll(self):
|
||||
## Builds the initial container tree.
|
||||
def _loadAll(self):
|
||||
all_stacks = ContainerRegistry.getInstance().findContainerStacks()
|
||||
for stack in all_stacks:
|
||||
definition_id = stack.definition.getId()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue