Browse Source

No need to sort quality groups by type alphabetically

Like, it would put 'draft' first and 'verydraft' last. Just makes no sense. They have unique layer heights already.

Contributes to issue CURA-6600.
Ghostkeeper 5 years ago
parent
commit
603f18ebc9

+ 1 - 1
cura/Machines/MaterialManager.py

@@ -198,7 +198,7 @@ class MaterialManager(QObject):
         return results
 
     #
-    # Used by QualityManager. Built-in quality profiles may be based on generic material IDs such as "generic_pla".
+    # Built-in quality profiles may be based on generic material IDs such as "generic_pla".
     # For materials such as ultimaker_pla_orange, no quality profiles may be found, so we should fall back to use
     # the generic material IDs to search for qualities.
     #

+ 1 - 1
cura/Machines/Models/QualityProfilesDropDownMenuModel.py

@@ -77,7 +77,7 @@ class QualityProfilesDropDownMenuModel(ListModel):
         quality_group_dict = ContainerTree.getInstance().getCurrentQualityGroups()
 
         item_list = []
-        for key in sorted(quality_group_dict):
+        for key in quality_group_dict:
             quality_group = quality_group_dict[key]
 
             layer_height = self._fetchLayerHeight(quality_group)