Update balance after calling scan_tx

This commit is contained in:
j-berman 2022-10-20 16:23:10 -05:00
parent aef4a982dc
commit 4cd6652825

View file

@ -138,6 +138,7 @@ Rectangle {
inputDialog.onAcceptedCallback = function() { inputDialog.onAcceptedCallback = function() {
var txid = inputDialog.inputText.trim(); var txid = inputDialog.inputText.trim();
if (currentWallet.scanTransactions([txid])) { if (currentWallet.scanTransactions([txid])) {
updateBalance();
appWindow.showStatusMessage(qsTr("Transaction successfully scanned"), 3); appWindow.showStatusMessage(qsTr("Transaction successfully scanned"), 3);
} else { } else {
appWindow.showStatusMessage(qsTr("Failed to scan transaction") + ": " + currentWallet.errorString, 5); appWindow.showStatusMessage(qsTr("Failed to scan transaction") + ": " + currentWallet.errorString, 5);