mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Select correct intent when quality_changes has an intent category
This commit is contained in:
parent
45f3b6eeb2
commit
916bb5a32b
1 changed files with 7 additions and 0 deletions
|
|
@ -1316,6 +1316,13 @@ class MachineManager(QObject):
|
|||
if not extruder.isEnabled:
|
||||
continue
|
||||
current_category = extruder.intent.getMetaDataEntry("intent_category", "default")
|
||||
if current_category != "default" and current_category != category:
|
||||
category = current_category
|
||||
continue
|
||||
# It's also possible that the qualityChanges has an opinion about the intent_category.
|
||||
# This is in the case that a QC was made on an intent, but none of the materials have that intent.
|
||||
# If the user switches back, we do want the intent to be selected again.
|
||||
current_category = extruder.qualityChanges.getMetaDataEntry("intent_category", "default")
|
||||
if current_category != "default" and current_category != category:
|
||||
category = current_category
|
||||
self.setIntentByCategory(category)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue