mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
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:
parent
ffcac04f9e
commit
6a7bbe5bdb
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue