mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 23:45:59 +08:00
Simplified statement as per review
CURA-2271
This commit is contained in:
parent
7caecd0a41
commit
4d84584f59
@ -235,14 +235,15 @@ Column
|
|||||||
property var valueError:
|
property var valueError:
|
||||||
{
|
{
|
||||||
var data = Cura.ContainerManager.getContainerMetaDataEntry(Cura.MachineManager.activeMaterialId, "compatible")
|
var data = Cura.ContainerManager.getContainerMetaDataEntry(Cura.MachineManager.activeMaterialId, "compatible")
|
||||||
if(data == "" || data == "True")
|
|
||||||
{
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if(data == "False")
|
if(data == "False")
|
||||||
{
|
{
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
enabled: !extrudersList.visible || base.currentExtruderIndex > -1
|
enabled: !extrudersList.visible || base.currentExtruderIndex > -1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user