Explicitly set it to bool to prevent warnings

This commit is contained in:
Jaime van Kessel 2016-09-13 11:05:09 +02:00
parent a266a4026c
commit cb05bbadd0

View File

@ -165,7 +165,7 @@ Cura.MachineAction
Column Column
{ {
width: parent.width * 0.5 width: parent.width * 0.5
visible: base.selectedPrinter visible: base.selectedPrinter ? true : false
spacing: UM.Theme.getSize("default_margin").height spacing: UM.Theme.getSize("default_margin").height
Label Label
{ {
@ -220,7 +220,7 @@ Cura.MachineAction
Button Button
{ {
text: catalog.i18nc("@action:button", "Connect") text: catalog.i18nc("@action:button", "Connect")
enabled: base.selectedPrinter enabled: base.selectedPrinter ? true : false
onClicked: connectToPrinter() onClicked: connectToPrinter()
} }
} }