mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Add activeQualityDisplayName to remove code duplication
CURA-6846
This commit is contained in:
parent
618cbffaa7
commit
c528000268
3 changed files with 38 additions and 32 deletions
|
@ -20,17 +20,7 @@ RowLayout
|
|||
{
|
||||
if (Cura.MachineManager.activeStack)
|
||||
{
|
||||
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)
|
||||
{
|
||||
if (Cura.MachineManager.activeIntentName != "")
|
||||
{
|
||||
text += " - " + Cura.MachineManager.activeIntentName
|
||||
}
|
||||
text += " - " + Cura.MachineManager.activeQualityGroup.getName()
|
||||
}
|
||||
var text = Cura.MachineManager.activeQualityDisplayName
|
||||
|
||||
if (!Cura.MachineManager.hasNotSupportedQuality)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue