diff options
author | j.delarago <joeydelarago@gmail.com> | 2022-06-15 10:06:00 +0300 |
---|---|---|
committer | j.delarago <joeydelarago@gmail.com> | 2022-06-15 10:06:00 +0300 |
commit | d19e89325f34b766b27718705c4f1947b8f4a0c9 (patch) | |
tree | fd830bf42adec89f818c8cb8ca6d91cf9792cfa4 /cura | |
parent | 3acc7bcb1c522cb9dcbec243af9c414fd95f7847 (diff) |
Stop returning quality types from inactive quality groups. This was causing the resolution drop down to show unavailable resolutions.
CURA-8849
Diffstat (limited to 'cura')
-rw-r--r-- | cura/Machines/Models/ActiveIntentQualitiesModel.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cura/Machines/Models/ActiveIntentQualitiesModel.py b/cura/Machines/Models/ActiveIntentQualitiesModel.py index dc3bf41831..ab59ada7c9 100644 --- a/cura/Machines/Models/ActiveIntentQualitiesModel.py +++ b/cura/Machines/Models/ActiveIntentQualitiesModel.py @@ -107,11 +107,16 @@ class ActiveIntentQualitiesModel(ListModel): if quality_node.quality_type not in quality_groups: # Don't add the empty quality type (or anything else that would crash, defensively). continue quality_group = quality_groups[quality_node.quality_type] + + if not quality_group.is_available: + continue + layer_height = fetchLayerHeight(quality_group) for intent_id, intent_node in quality_node.intents.items(): if intent_node.intent_category != self._intent_category: continue + extruder_intents.append({"name": quality_group.name, "display_text": f"<b>{quality_group.name}</b> - {layer_height}mm", "quality_type": quality_group.quality_type, |