Browse Source

We are using recommendedResolutionSelector._previousResolution to see if the resolution had changed before highlighting the resolution selector. This updates when intents change but not when qualities change.

I tried updating when the qualities change but this was updating before this line
if(recommendedResolutionSelector._previousResolution !== Cura.MachineManager.activeQualityType)
which caused this always to resolve as true

The solution was to update _previousResolution after we select an item in the drop down.

CURA-8849
j.delarago 2 years ago
parent
commit
689547f125

+ 5 - 0
resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml

@@ -66,6 +66,11 @@ Item
         {
             var selected_item = model.getItem(currentIndex)
             Cura.IntentManager.selectIntent(selected_item.intent_category, selected_item.quality_type)
+
+            if (Cura.IntentManager.currentIntentCategory == selected_item.intent_category)
+            {
+                recommendedResolutionSelector._previousResolution = selected_item.quality_type;
+            }
         }
 
         Connections