Code style

This commit is contained in:
fieldOfView 2016-08-19 17:22:55 +02:00
parent a01a541c5d
commit d8d328c491

View file

@ -131,9 +131,9 @@ class ExtruderManager(QObject):
# Make sure the next stack is a stack that contains only the machine definition # Make sure the next stack is a stack that contains only the machine definition
if not extruder_train.getNextStack(): if not extruder_train.getNextStack():
shallowStack = UM.Settings.ContainerStack(machine_id + "_shallow") shallow_stack = UM.Settings.ContainerStack(machine_id + "_shallow")
shallowStack.addContainer(machine_definition) shallow_stack.addContainer(machine_definition)
extruder_train.setNextStack(shallowStack) extruder_train.setNextStack(shallow_stack)
changed = True changed = True
if changed: if changed:
self.extrudersChanged.emit(machine_id) self.extrudersChanged.emit(machine_id)
@ -248,9 +248,9 @@ class ExtruderManager(QObject):
# Make sure the next stack is a stack that contains only the machine definition # Make sure the next stack is a stack that contains only the machine definition
if not container_stack.getNextStack(): if not container_stack.getNextStack():
shallowStack = UM.Settings.ContainerStack(machine_id + "_shallow") shallow_stack = UM.Settings.ContainerStack(machine_id + "_shallow")
shallowStack.addContainer(machine_definition) shallow_stack.addContainer(machine_definition)
container_stack.setNextStack(shallowStack) container_stack.setNextStack(shallow_stack)
container_registry.addContainer(container_stack) container_registry.addContainer(container_stack)