mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix typing
This commit is contained in:
parent
6e625b2cf8
commit
472e6e88c3
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ class MachineSettingsAction(MachineAction):
|
|||
# flavour setting is changed.
|
||||
def _updateHasMaterialsInContainerTree(self) -> None:
|
||||
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
||||
if global_stack is None:
|
||||
return
|
||||
machine_node = ContainerTree.getInstance().machines[global_stack.definition.getId()]
|
||||
|
||||
if machine_node.has_materials != parseBool(global_stack.getMetaDataEntry("has_materials")): # May have changed due to the g-code flavour.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue