From 03e16b53982a5efba061043a42ab431391bb97be Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 3 Feb 2017 15:49:18 +0100 Subject: [PATCH] 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. --- resources/qml/PrintMonitor.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 616b90fe72..d74f769fd5 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -115,7 +115,7 @@ Column id: materialColor width: 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.color: UM.Theme.getColor("lining") visible: printerConnected