Browse Source

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

patch-4
Sander van Grieken 3 years ago
parent
commit
ae1e7eea4c
  1. 8
      electrum/gui/qml/components/Pin.qml

8
electrum/gui/qml/components/Pin.qml

@ -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

Loading…
Cancel
Save