1
0

plugins: psbt_nostr: let GUI handle a received PSBTs one by one by pausing receiving additional PSBTs until PSBT dialog is closed.

Accepting a PSBT opens the Tx dialog and pauses receiving additional PSBTs until the Tx dialog is closed.
Rejecting a PSBT will start a cooldown and accept all pending PSBTs into the history for later inspection.
This commit is contained in:
Sander van Grieken
2025-04-15 13:58:49 +02:00
parent 3ff84f08a6
commit 60bd6327ce
6 changed files with 106 additions and 27 deletions

View File

@@ -16,10 +16,15 @@ Item {
yesno: true
})
dialog.accepted.connect(function () {
app.stack.push(Qt.resolvedUrl('../../../gui/qml/components/TxDetails.qml'), {
var page = app.stack.push(Qt.resolvedUrl('../../../gui/qml/components/TxDetails.qml'), {
rawtx: tx
})
target.acceptPsbt(Daemon.currentWallet, event)
page.closed.connect(function () {
target.acceptPsbt(Daemon.currentWallet, event)
})
})
dialog.rejected.connect(function () {
target.rejectPsbt(Daemon.currentWallet, event)
})
dialog.open()
}