mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 02:29:08 +08: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
@ -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…
x
Reference in New Issue
Block a user