From 9fc260c62dd63d8216dd5c783e99ee5768e36b4d Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Fri, 10 Jul 2020 10:55:20 +0200 Subject: [PATCH] account: update balances of account page when new block is found --- main.qml | 4 ++++ pages/Account.qml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/main.qml b/main.qml index 4d49e8a9..ad41d8d5 100644 --- a/main.qml +++ b/main.qml @@ -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){ diff --git a/pages/Account.qml b/pages/Account.qml index 1fc0039a..49c06156 100644 --- a/pages/Account.qml +++ b/pages/Account.qml @@ -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