mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 04:07:57 -06: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
1 changed files with 24 additions and 23 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue