Merge pull request #6473 from Ultimaker/CURA-6632_intent_in_stats

CURA-6632 Add intent into stats
This commit is contained in:
Jaime van Kessel 2019-10-08 16:19:19 +02:00 committed by GitHub
commit 11f9992ebb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 7 deletions

View file

@ -627,13 +627,7 @@ class MachineManager(QObject):
if not global_container_stack:
return ""
intent_category = "default"
for extruder in global_container_stack.extruderList:
category = extruder.intent.getMetaDataEntry("intent_category", "default")
if category != "default" and category != intent_category:
intent_category = category
return intent_category
return global_container_stack.getIntentCategory()
# Provies a list of extruder positions that have a different intent from the active one.
@pyqtProperty("QStringList", notify=activeIntentChanged)