main: update balance only when wallet is synced

This commit is contained in:
rating89us 2020-06-12 00:08:04 +02:00 committed by GitHub
parent c8f4355e15
commit 333c9ee311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
}