mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Simplified statement as per review
CURA-2271
This commit is contained in:
parent
7caecd0a41
commit
4d84584f59
1 changed files with 5 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue