mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-07 23:49:01 +08:00
Reverted changes done that makes sliders fail - CURA-4327
This commit is contained in:
parent
879b3df816
commit
37da9f654b
@ -126,25 +126,14 @@ class ProfilesModel(InstanceContainersModel):
|
|||||||
for key in reversed(tmp_all_quality_items.keys()):
|
for key in reversed(tmp_all_quality_items.keys()):
|
||||||
all_quality_items[key] = tmp_all_quality_items[key]
|
all_quality_items[key] = tmp_all_quality_items[key]
|
||||||
|
|
||||||
# First the suitable containers are set in the model
|
|
||||||
containers = []
|
|
||||||
for data_item in all_quality_items.values():
|
for data_item in all_quality_items.values():
|
||||||
suitable_item = data_item["suitable_container"]
|
item = data_item["suitable_container"]
|
||||||
if suitable_item is None:
|
if item is None:
|
||||||
suitable_item = data_item["all_containers"][0]
|
item = data_item["all_containers"][0]
|
||||||
containers.append(suitable_item)
|
|
||||||
|
|
||||||
# Once the suitable containers are collected, the rest of the containers are appended
|
|
||||||
for data_item in all_quality_items.values():
|
|
||||||
for item in data_item["all_containers"]:
|
|
||||||
if item not in containers:
|
|
||||||
containers.append(item)
|
|
||||||
|
|
||||||
# Now all the containers are set
|
|
||||||
for item in containers:
|
|
||||||
profile = container_registry.findContainers(id = item["id"])
|
profile = container_registry.findContainers(id = item["id"])
|
||||||
if not profile:
|
if not profile:
|
||||||
item["layer_height"] = "" #Can't update a profile that is unknown.
|
item["layer_height"] = "" # Can't update a profile that is unknown.
|
||||||
item["available"] = False
|
item["available"] = False
|
||||||
yield item
|
yield item
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user