mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Correctly sort the intents in QualityManagementModel
CURA-6956
This commit is contained in:
parent
ff8d8735de
commit
04304c1515
1 changed files with 2 additions and 1 deletions
|
@ -340,7 +340,8 @@ class QualityManagementModel(ListModel):
|
|||
"section_name": catalog.i18nc("@label", intent_translations.get(intent_category, {}).get("name", catalog.i18nc("@label", "Unknown"))),
|
||||
})
|
||||
# Sort by quality_type for each intent category
|
||||
result = sorted(result, key = lambda x: (x["intent_category"], x["quality_type"]))
|
||||
|
||||
result = sorted(result, key = lambda x: (list(intent_translations).index(x["intent_category"]), x["quality_type"]))
|
||||
item_list += result
|
||||
|
||||
# Create quality_changes group items
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue