mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:29:04 +08:00
Switch early fail around to reduce indentation
Makes this more readable. Contributes to issue CURA-6793.
This commit is contained in:
parent
b137e6a36d
commit
dd8ee2e3d8
@ -323,9 +323,10 @@ class ExtruderManager(QObject):
|
||||
## Adds the extruders of the currently active machine.
|
||||
def _addCurrentMachineExtruders(self) -> None:
|
||||
global_stack = self._application.getGlobalContainerStack()
|
||||
extruders_changed = False
|
||||
if not global_stack:
|
||||
return
|
||||
|
||||
if global_stack:
|
||||
extruders_changed = False
|
||||
container_registry = ContainerRegistry.getInstance()
|
||||
global_stack_id = global_stack.getId()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user