mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:39:04 +08:00
Prevent race condition before global container stack is made
Just properly check if there is a global container stack.
This commit is contained in:
parent
861837ef41
commit
6c3b4b7f29
@ -769,6 +769,8 @@ class MachineManager(QObject):
|
||||
result = []
|
||||
empty_quality_changes = self._empty_quality_changes_container
|
||||
global_container_stack = self._global_container_stack
|
||||
if not global_container_stack:
|
||||
return []
|
||||
global_machine_definition = quality_manager.getParentMachineDefinition(global_container_stack.getBottom())
|
||||
|
||||
extruder_stacks = ExtruderManager.getInstance().getActiveExtruderStacks()
|
||||
|
Loading…
x
Reference in New Issue
Block a user