mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-01 14:05:12 +08:00
small code fixes
This commit is contained in:
parent
21ea99d9f2
commit
ab8bcc4ae3
@ -114,8 +114,7 @@ class ProfilesModel(InstanceContainersModel):
|
|||||||
quality_type = profile[0].getMetaDataEntry("quality_type") if profile else ""
|
quality_type = profile[0].getMetaDataEntry("quality_type") if profile else ""
|
||||||
|
|
||||||
if quality_type not in tmp_all_quality_items:
|
if quality_type not in tmp_all_quality_items:
|
||||||
tmp_all_quality_items[quality_type] = {"suitable_container": None,
|
tmp_all_quality_items[quality_type] = {"suitable_container": None, "all_containers": []}
|
||||||
"all_containers": []}
|
|
||||||
|
|
||||||
tmp_all_quality_items[quality_type]["all_containers"].append(item)
|
tmp_all_quality_items[quality_type]["all_containers"].append(item)
|
||||||
if tmp_all_quality_items[quality_type]["suitable_container"] is None and profile[0] in qualities:
|
if tmp_all_quality_items[quality_type]["suitable_container"] is None and profile[0] in qualities:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user