mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Added Create new profile button to Discard or keep profile changes dialog
CURA-3398
This commit is contained in:
parent
3f059ff1d4
commit
0bf0b29a50
1 changed files with 29 additions and 12 deletions
|
@ -129,29 +129,46 @@ UM.Dialog
|
||||||
model: base.changesModel
|
model: base.changesModel
|
||||||
}
|
}
|
||||||
|
|
||||||
Row
|
Item
|
||||||
{
|
{
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
anchors.left: parent.left
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
Button
|
height:childrenRect.height
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:button", "Keep");
|
|
||||||
onClicked:
|
|
||||||
{
|
|
||||||
Printer.discardOrKeepProfileChangesClosed("keep")
|
|
||||||
base.hide()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
id: discardButton
|
||||||
text: catalog.i18nc("@action:button", "Discard");
|
text: catalog.i18nc("@action:button", "Discard");
|
||||||
|
anchors.right: parent.right
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
Printer.discardOrKeepProfileChangesClosed("discard")
|
Printer.discardOrKeepProfileChangesClosed("discard")
|
||||||
base.hide()
|
base.hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: keepButton
|
||||||
|
text: catalog.i18nc("@action:button", "Keep");
|
||||||
|
anchors.right: discardButton.left
|
||||||
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
Printer.discardOrKeepProfileChangesClosed("keep")
|
||||||
|
base.hide()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: createNewProfileButton
|
||||||
|
text: catalog.i18nc("@action:button", "Create new profile");
|
||||||
|
anchors.left: parent.left
|
||||||
|
action: Cura.Actions.addProfile
|
||||||
|
onClicked: base.hide()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue