mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:15:56 +08:00
Fix material colour when no printer is selected
It's invisible anyway, but the hex colour gives no errors at least. Contributes to issue CURA-3161.
This commit is contained in:
parent
1305dd88d7
commit
03e16b5398
@ -115,7 +115,7 @@ Column
|
|||||||
id: materialColor
|
id: materialColor
|
||||||
width: materialName.height * 0.75
|
width: materialName.height * 0.75
|
||||||
height: materialName.height * 0.75
|
height: materialName.height * 0.75
|
||||||
color: printerConnected ? connectedPrinter.materialColors[index] : [0, 0, 0, 0] //Need to check for printerConnected or materialColors[index] gives an error.
|
color: printerConnected ? connectedPrinter.materialColors[index] : "#00000000" //Need to check for printerConnected or materialColors[index] gives an error.
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
border.color: UM.Theme.getColor("lining")
|
border.color: UM.Theme.getColor("lining")
|
||||||
visible: printerConnected
|
visible: printerConnected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user