Merge pull request #18946 from Ultimaker/CURA-11854_fix_intent_selection

Fix intent selection
This commit is contained in:
Casper Lamboo 2024-04-24 10:45:46 +02:00 committed by GitHub
commit f86d63b513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,9 +54,7 @@ class ActiveIntentQualitiesModel(ListModel):
self._updateDelayed()
def _update(self):
active_extruder_stack = cura.CuraApplication.CuraApplication.getInstance().getMachineManager().activeStack
if active_extruder_stack:
self._intent_category = active_extruder_stack.intent.getMetaDataEntry("intent_category", "")
self._intent_category = IntentManager.getInstance().currentIntentCategory
new_items: List[Dict[str, Any]] = []
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()