account: update balances of account page when new block is found

This commit is contained in:
rating89us 2020-07-10 10:55:20 +02:00 committed by rating89us
parent b7b1221221
commit 9fc260c62d
2 changed files with 6 additions and 0 deletions

View File

@ -428,6 +428,10 @@ ApplicationWindow {
leftPanel.minutesToUnlock = (balance !== balanceU) ? currentWallet.history.minutesToUnlock : "";
leftPanel.balanceString = balance
leftPanel.balanceUnlockedString = balanceU
if (middlePanel.state === "Account") {
middlePanel.accountView.balanceAllText = walletManager.displayAmount(appWindow.currentWallet.balanceAll());
middlePanel.accountView.unlockedBalanceAllText = walletManager.displayAmount(appWindow.currentWallet.unlockedBalanceAll());
}
}
function onUriHandler(uri){

View File

@ -48,6 +48,8 @@ Rectangle {
color: "transparent"
property var model
property alias accountHeight: mainLayout.height
property alias balanceAllText: balanceAll.text
property alias unlockedBalanceAllText: unlockedBalanceAll.text
property bool selectAndSend: false
property int currentAccountIndex