Show quality and intent a custom profile is based on

CURA-6846
This commit is contained in:
Lipu Fei 2019-10-03 14:18:49 +02:00
parent 027768f151
commit bd84c4d98d
3 changed files with 41 additions and 8 deletions

View file

@ -20,13 +20,18 @@ RowLayout
{
if (Cura.MachineManager.activeStack)
{
var text = ""
if(Cura.MachineManager.activeIntentCategory != "default")
var text = Cura.MachineManager.activeQualityOrQualityChangesName
// If this is a custom quality, add intent (if present) and quality it is based on
if (Cura.MachineManager.isActiveQualityCustom)
{
text += Cura.MachineManager.activeIntentCategory + " - "
if (Cura.MachineManager.activeIntentName != "")
{
text += " - " + Cura.MachineManager.activeIntentName
}
text += " - " + Cura.MachineManager.activeQualityName
}
text += Cura.MachineManager.activeQualityOrQualityChangesName
if (!Cura.MachineManager.hasNotSupportedQuality)
{
text += " - " + layerHeight.properties.value + "mm"