Skip to content

Commit

Permalink
Merge pull request #18946 from Ultimaker/CURA-11854_fix_intent_selection
Browse files Browse the repository at this point in the history
Fix intent selection
  • Loading branch information
casperlamboo authored Apr 24, 2024
2 parents f98bdd0 + 600cd76 commit f86d63b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cura/Machines/Models/ActiveIntentQualitiesModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def _onChanged(self, container: ContainerStack) -> None:
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()
Expand Down

0 comments on commit f86d63b

Please sign in to comment.