mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
CURA-4643 Allow using the ESC/ENTER keys for reject or accept the
user agreement
This commit is contained in:
parent
e1167ee68f
commit
b425672ad0
1 changed files with 5 additions and 8 deletions
|
@ -15,8 +15,6 @@ UM.Dialog
|
||||||
height: minimumHeight
|
height: minimumHeight
|
||||||
title: catalog.i18nc("@title:window", "User Agreement")
|
title: catalog.i18nc("@title:window", "User Agreement")
|
||||||
|
|
||||||
disableKeyButtons: true
|
|
||||||
|
|
||||||
TextArea
|
TextArea
|
||||||
{
|
{
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
@ -45,7 +43,7 @@ UM.Dialog
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
text: catalog.i18nc("@action:button", "I understand and agree")
|
text: catalog.i18nc("@action:button", "I understand and agree")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
manager.didAgree(true)
|
baseDialog.accepted()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,13 +52,12 @@ UM.Dialog
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
text: catalog.i18nc("@action:button", "I don't agree")
|
text: catalog.i18nc("@action:button", "I don't agree")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
manager.didAgree(false)
|
baseDialog.rejected()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
onAccepted: manager.didAgree(true)
|
||||||
|
onRejected: manager.didAgree(false)
|
||||||
onClosing: {
|
onClosing: manager.didAgree(false)
|
||||||
manager.didAgree(false)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue