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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user