mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-19 22:44:26 +08:00
Explicitly set it to bool to prevent warnings
This commit is contained in:
parent
a266a4026c
commit
cb05bbadd0
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user