aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2020-07-10 10:55:20 +0200
committerrating89us <rating89us@rating89us.com>2020-07-10 10:57:59 +0200
commit9fc260c62dd63d8216dd5c783e99ee5768e36b4d (patch)
treeaff8c78905963a433db8ef395d859ebf43d1791a
parentb7b12212217ebc5d6fe9d1f49b7c3abed42449da (diff)
downloadmonzero-gui-9fc260c62dd63d8216dd5c783e99ee5768e36b4d.tar.gz
monzero-gui-9fc260c62dd63d8216dd5c783e99ee5768e36b4d.tar.xz
monzero-gui-9fc260c62dd63d8216dd5c783e99ee5768e36b4d.zip
account: update balances of account page when new block is found
-rw-r--r--main.qml4
-rw-r--r--pages/Account.qml2
2 files changed, 6 insertions, 0 deletions
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