mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 06:45:09 -06:00
Use extruderList rather than extruders
Removes another warning from the log. And it makes the code simpler in this case. Done during Turbo Testing and Tooling to reduce the number of warnings in our log file.
This commit is contained in:
parent
bbf53c441f
commit
e0e0371de4
1 changed files with 1 additions and 3 deletions
|
@ -180,9 +180,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
return {"status": "error", "message": catalog.i18nc("@info:status Don't translate the XML tags <filename>!", "Can't import profile from <filename>{0}</filename> before a printer is added.", file_name)}
|
||||
container_tree = ContainerTree.getInstance()
|
||||
|
||||
machine_extruders = []
|
||||
for position in sorted(global_stack.extruders):
|
||||
machine_extruders.append(global_stack.extruders[position])
|
||||
machine_extruders = global_stack.extruderList
|
||||
|
||||
plugin_registry = PluginRegistry.getInstance()
|
||||
extension = file_name.split(".")[-1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue