Simplified statement as per review

CURA-2271
This commit is contained in:
Jaime van Kessel 2016-09-13 17:31:15 +02:00
parent 7caecd0a41
commit 4d84584f59

View file

@ -235,14 +235,15 @@ Column
property var valueError:
{
var data = Cura.ContainerManager.getContainerMetaDataEntry(Cura.MachineManager.activeMaterialId, "compatible")
if(data == "" || data == "True")
{
return false
}
if(data == "False")
{
return true
}
else
{
return false
}
}
enabled: !extrudersList.visible || base.currentExtruderIndex > -1