1
0

qml: make sure the auth_protect decorator finishes when closing Pin dialog without reject/accept

This commit is contained in:
Sander van Grieken
2022-07-26 20:37:27 +02:00
parent 6c21a0ec67
commit ae1e7eea4c

View File

@@ -65,6 +65,14 @@ ElDialog {
}
}
onAccepted: result = Dialog.Accepted
onRejected: result = Dialog.Rejected
onClosed: {
if (!root.result) {
root.reject() // make sure we reject the authed fn()
}
}
header: GridLayout {
columns: 2
rowSpacing: 0