1
0

qml: close TxDetails on TX remove only after the 'removed_transaction' event has been received, so the

history model doesn't refresh too early (fixes #8782)
This commit is contained in:
Sander van Grieken
2024-02-05 21:07:33 +01:00
parent 620b46780b
commit 4228911609
2 changed files with 12 additions and 3 deletions

View File

@@ -473,10 +473,13 @@ Pane {
var dialog = app.messageDialog.createObject(app, { text: message, yesno: true })
dialog.accepted.connect(function() {
txdetails.removeLocalTx(true)
root.close()
root.enabled = false
})
dialog.open()
}
onTxRemoved: {
root.close()
}
Component.onCompleted: {
if (root.txid) {
txdetails.txid = root.txid