From 689547f125ba612dc47a7bfd5f9d779e0df4b7b8 Mon Sep 17 00:00:00 2001 From: "j.delarago" Date: Thu, 16 Jun 2022 13:49:30 +0200 Subject: [PATCH] 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 --- .../Recommended/RecommendedResolutionSelector.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml index 6217cfe1cc..bbad686514 100644 --- a/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml +++ b/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