mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-24 11:36:14 +00:00
refresh history updates
This commit is contained in:
parent
b8f38f29ae
commit
44b72eaff2
1 changed files with 7 additions and 4 deletions
11
main.qml
11
main.qml
|
@ -442,9 +442,6 @@ ApplicationWindow {
|
||||||
console.log("Saving wallet after first refresh");
|
console.log("Saving wallet after first refresh");
|
||||||
currentWallet.store()
|
currentWallet.store()
|
||||||
isNewWallet = false
|
isNewWallet = false
|
||||||
|
|
||||||
// Update History
|
|
||||||
currentWallet.history.refresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// recovering from seed is finished after first refresh
|
// recovering from seed is finished after first refresh
|
||||||
|
@ -453,6 +450,10 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update history on every refresh if it's empty
|
||||||
|
if(currentWallet.history.count == 0)
|
||||||
|
currentWallet.history.refresh()
|
||||||
|
|
||||||
onWalletUpdate();
|
onWalletUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -512,7 +513,8 @@ ApplicationWindow {
|
||||||
function onWalletMoneyReceived(txId, amount) {
|
function onWalletMoneyReceived(txId, amount) {
|
||||||
// refresh transaction history here
|
// refresh transaction history here
|
||||||
currentWallet.refresh()
|
currentWallet.refresh()
|
||||||
currentWallet.history.refresh() // this will refresh model
|
console.log("Confirmed money found")
|
||||||
|
// history refresh is handled by walletUpdated
|
||||||
}
|
}
|
||||||
|
|
||||||
function onWalletUnconfirmedMoneyReceived(txId, amount) {
|
function onWalletUnconfirmedMoneyReceived(txId, amount) {
|
||||||
|
@ -523,6 +525,7 @@ ApplicationWindow {
|
||||||
|
|
||||||
function onWalletMoneySent(txId, amount) {
|
function onWalletMoneySent(txId, amount) {
|
||||||
// refresh transaction history here
|
// refresh transaction history here
|
||||||
|
console.log("money sent found")
|
||||||
currentWallet.refresh()
|
currentWallet.refresh()
|
||||||
currentWallet.history.refresh() // this will refresh model
|
currentWallet.history.refresh() // this will refresh model
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue