aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2020-06-12 00:08:04 +0200
committerGitHub <noreply@github.com>2020-06-12 00:08:04 +0200
commit333c9ee311308df9086bd5200f692fefcebdfd47 (patch)
tree9102e4cecf56d9f4907c3812cccf87aa4a8dc0ac
parentc8f4355e15e6574c7139bfb5f6ea195ad4199644 (diff)
downloadmonzero-gui-333c9ee311308df9086bd5200f692fefcebdfd47.tar.gz
monzero-gui-333c9ee311308df9086bd5200f692fefcebdfd47.tar.xz
monzero-gui-333c9ee311308df9086bd5200f692fefcebdfd47.zip
main: update balance only when wallet is synced
-rw-r--r--main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 4d237ace..85f918b7 100644
--- a/main.qml
+++ b/main.qml
@@ -416,7 +416,7 @@ ApplicationWindow {
var balance = "?.??";
var balanceU = "?.??";
- if(!hideBalanceForced && !persistentSettings.hideBalance){
+ if(!hideBalanceForced && !persistentSettings.hideBalance && appWindow.walletSynced){
balance = walletManager.displayAmount(currentWallet.balance());
balanceU = walletManager.displayAmount(currentWallet.unlockedBalance());
}