mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 15:28:56 -07:00
Merge branch '2.3' of github.com:Ultimaker/Cura
This commit is contained in:
commit
b6e6871f23
8 changed files with 42 additions and 19 deletions
|
|
@ -232,6 +232,19 @@ Column
|
|||
text: Cura.MachineManager.activeMaterialName
|
||||
tooltip: Cura.MachineManager.activeMaterialName
|
||||
visible: Cura.MachineManager.hasMaterials
|
||||
property var valueError:
|
||||
{
|
||||
var data = Cura.ContainerManager.getContainerMetaDataEntry(Cura.MachineManager.activeMaterialId, "compatible")
|
||||
print(data)
|
||||
if(data == "" || data == "True")
|
||||
{
|
||||
return false
|
||||
}
|
||||
if(data == "False")
|
||||
{
|
||||
return true
|
||||
}
|
||||
}
|
||||
enabled: !extrudersList.visible || base.currentExtruderIndex > -1
|
||||
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@ QtObject {
|
|||
{
|
||||
if(control.enabled)
|
||||
{
|
||||
if(control.valueWarning)
|
||||
if(control.valueError)
|
||||
{
|
||||
return Theme.getColor("setting_validation_error");
|
||||
}
|
||||
else if(control.valueWarning)
|
||||
{
|
||||
return Theme.getColor("setting_validation_warning");
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue