Merge pull request #3003

9fc260c account: update balances of account page when new block is found (rating89us)
This commit is contained in:
luigi1111 2020-09-22 10:28:49 -05:00
commit 2b83edc982
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 6 additions and 0 deletions

View file

@ -433,6 +433,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