mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 17:55:56 +08:00
Code style
CURA-9277 Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
This commit is contained in:
parent
d83673a972
commit
77a179be76
@ -218,7 +218,7 @@ class CuraStackBuilder:
|
|||||||
|
|
||||||
# Create user container
|
# Create user container
|
||||||
user_container = cls.createUserChangesContainer(new_stack_id + "_user", definition.getId(), new_stack_id,
|
user_container = cls.createUserChangesContainer(new_stack_id + "_user", definition.getId(), new_stack_id,
|
||||||
is_global_stack=True)
|
is_global_stack = True)
|
||||||
|
|
||||||
stack.definitionChanges = cls.createDefinitionChangesContainer(stack, new_stack_id + "_settings")
|
stack.definitionChanges = cls.createDefinitionChangesContainer(stack, new_stack_id + "_settings")
|
||||||
stack.variant = variant_container
|
stack.variant = variant_container
|
||||||
@ -282,11 +282,11 @@ class CuraStackBuilder:
|
|||||||
registry = application.getContainerRegistry()
|
registry = application.getContainerRegistry()
|
||||||
container_tree = ContainerTree.getInstance()
|
container_tree = ContainerTree.getInstance()
|
||||||
|
|
||||||
if registry.findContainerStacks(type="abstract_machine", id=abstract_machine_id):
|
if registry.findContainerStacks(type = "abstract_machine", id = abstract_machine_id):
|
||||||
# This abstract machine already exists
|
# This abstract machine already exists
|
||||||
return None
|
return None
|
||||||
|
|
||||||
match registry.findDefinitionContainers(type="machine", id=definition_id):
|
match registry.findDefinitionContainers(type = "machine", id = definition_id):
|
||||||
case []:
|
case []:
|
||||||
# It should not be possible for the definition to be missing since an abstract machine will only
|
# It should not be possible for the definition to be missing since an abstract machine will only
|
||||||
# be created as a result of a machine with definition_id being created.
|
# be created as a result of a machine with definition_id being created.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user