Fix hiding materials if material is empty

Because the loaded material profile has the name 'Empty' then.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-12-07 15:31:12 +01:00
parent ffcac04f9e
commit 6a7bbe5bdb
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -20,7 +20,7 @@ Row
{
materialColor: printCoreConfiguration.material.color
anchors.verticalCenter: parent.verticalCenter
extruderEnabled: printCoreConfiguration.material.name !== "" && printCoreConfiguration.hotendID !== ""
extruderEnabled: printCoreConfiguration.material.brand !== "" && printCoreConfiguration.hotendID !== ""
}
Column
@ -36,7 +36,7 @@ Row
}
Label
{
text: printCoreConfiguration.material.name ? printCoreConfiguration.material.name : " " //Use space so that the height is still correct.
text: printCoreConfiguration.material.brand ? printCoreConfiguration.material.name : " " //Use space so that the height is still correct.
renderType: Text.NativeRendering
elide: Text.ElideRight
font: UM.Theme.getFont("default")