mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-25 12:05:54 +00:00
Merge pull request #541
bd95908
update history when new block is found (Jaquee)
This commit is contained in:
commit
632d347d07
1 changed files with 2 additions and 2 deletions
4
main.qml
4
main.qml
|
@ -334,8 +334,8 @@ ApplicationWindow {
|
||||||
console.log(">>> wallet updated")
|
console.log(">>> wallet updated")
|
||||||
middlePanel.unlockedBalanceText = leftPanel.unlockedBalanceText = walletManager.displayAmount(currentWallet.unlockedBalance);
|
middlePanel.unlockedBalanceText = leftPanel.unlockedBalanceText = walletManager.displayAmount(currentWallet.unlockedBalance);
|
||||||
middlePanel.balanceText = leftPanel.balanceText = walletManager.displayAmount(currentWallet.balance);
|
middlePanel.balanceText = leftPanel.balanceText = walletManager.displayAmount(currentWallet.balance);
|
||||||
// Update history if new block found since last update and balance is locked.
|
// Update history if new block found since last update
|
||||||
if(foundNewBlock && currentWallet.history.locked) {
|
if(foundNewBlock) {
|
||||||
foundNewBlock = false;
|
foundNewBlock = false;
|
||||||
console.log("New block found - updating history")
|
console.log("New block found - updating history")
|
||||||
currentWallet.history.refresh()
|
currentWallet.history.refresh()
|
||||||
|
|
Loading…
Reference in a new issue