Pressing the discard button now actually discards the changes

CURA-3221
This commit is contained in:
Jaime van Kessel 2017-02-28 12:35:08 +01:00
parent 2462699982
commit 85b58c9296
3 changed files with 19 additions and 48 deletions

View file

@ -116,10 +116,20 @@ UM.Dialog
Button
{
text: catalog.i18nc("@action:button", "Keep");
onClicked:
{
Printer.discardOrKeepProfileChangesClosed("keep")
base.hide()
}
}
Button
{
text: catalog.i18nc("@action:button", "Discard");
onClicked:
{
Printer.discardOrKeepProfileChangesClosed("discard")
base.hide()
}
}
}
}