qml: make sure the auth_protect decorator finishes when closing Pin dialog without reject/accept
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user