1
0

qml: refactor QEWallet.sign() to sign() and sign_and_broadcast(), add user feedback when signing fails.

This commit is contained in:
Sander van Grieken
2024-10-23 12:02:01 +02:00
parent 0f26f38d18
commit c6cd47ebba
5 changed files with 51 additions and 26 deletions

View File

@@ -644,6 +644,14 @@ Item {
}
_confirmPaymentDialog.destroy()
}
onSignError: (message) => {
var dialog = app.messageDialog.createObject(mainView, {
title: qsTr('Error'),
text: [qsTr('Could not sign tx'), message].join('\n\n'),
iconSource: '../../../icons/warning.png'
})
dialog.open()
}
}
// TODO: lingering confirmPaymentDialogs can raise exceptions in
// the child finalizer when currentWallet disappears, but we need