mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 16:50:40 +08:00
Remove Ok/Cancel buttons to better fit in wizard or action dialog
CURA-2019
This commit is contained in:
parent
b08bdb206b
commit
6d94d3e1d9
@ -142,29 +142,19 @@ Cura.MachineAction
|
||||
text: base.selectedPrinter ? base.selectedPrinter.ipAddress : ""
|
||||
}
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
text: catalog.i18nc("@action:button", "Ok")
|
||||
enabled: base.selectedPrinter
|
||||
onClicked:
|
||||
{
|
||||
manager.setKey(base.selectedPrinter.getKey())
|
||||
completed()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Button
|
||||
{
|
||||
text: catalog.i18nc("@action:button", "Ok")
|
||||
anchors.right: cancelButton.left
|
||||
anchors.bottom: parent.bottom
|
||||
onClicked:
|
||||
{
|
||||
manager.setKey(base.selectedPrinter.getKey())
|
||||
completed()
|
||||
}
|
||||
}
|
||||
Button
|
||||
{
|
||||
id: cancelButton
|
||||
text: catalog.i18nc("@action:button", "Cancel")
|
||||
anchors.right: discoverUM3Action.right
|
||||
anchors.bottom: parent.bottom
|
||||
onClicked:
|
||||
{
|
||||
completed()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user