mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Remove Ok/Cancel buttons to better fit in wizard or action dialog
CURA-2019
This commit is contained in:
parent
b08bdb206b
commit
6d94d3e1d9
1 changed files with 12 additions and 22 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue