Show the warning color for unsupported materials/qualities by using the new 'supported' metadata flag.

CURA-2271
This commit is contained in:
Simon Edwards 2016-10-12 15:57:50 +02:00
parent df922f5382
commit c3cf762451
6 changed files with 17 additions and 18 deletions

View file

@ -62,7 +62,7 @@ UM.ManagementPage
Button
{
text: catalog.i18nc("@label", "Create")
enabled: base.canCreateProfile() && Cura.MachineManager.activeQualityId != "empty_quality"
enabled: base.canCreateProfile()
visible: base.canCreateProfile()
iconName: "list-add";
@ -78,7 +78,7 @@ UM.ManagementPage
Button
{
text: catalog.i18nc("@label", "Duplicate")
enabled: ! base.canCreateProfile() && Cura.MachineManager.activeQualityId != "empty_quality"
enabled: ! base.canCreateProfile()
visible: ! base.canCreateProfile()
iconName: "list-add";