Add "(syncing)" after balance when syncing

Should cut down on people wondering why their balance is wrong
This commit is contained in:
moneromooo.monero
2016-12-31 13:47:40 +00:00
parent d8f9e7360f
commit 192bfc70b0
3 changed files with 12 additions and 2 deletions

View File

@@ -219,6 +219,7 @@ ApplicationWindow {
function connectWallet(wallet) {
showProcessingSplash("Please wait...")
currentWallet = wallet
updateSyncing(false)
// connect handlers
currentWallet.refreshed.connect(onWalletRefresh)
@@ -307,6 +308,7 @@ ApplicationWindow {
// TODO: implement onDaemonSynced or similar in wallet API and don't start refresh thread before daemon is synced
daemonSynced = (currentWallet.connected != Wallet.ConnectionStatus_Disconnected && dCurrentBlock >= dTargetBlock)
leftPanel.progressBar.updateProgress(dCurrentBlock,dTargetBlock);
updateSyncing((currentWallet.connected !== Wallet.ConnectionStatus_Disconnected) && (dCurrentBlock < dTargetBlock))
middlePanel.updateStatus();
// If wallet isnt connected and no daemon is running - Ask
@@ -615,6 +617,11 @@ ApplicationWindow {
informationPopup.open()
}
function updateSyncing(syncing) {
var text = (syncing ? qsTr("Balance (syncing)") : qsTr("Balance")) + translationManager.emptyString
leftPanel.balanceLabelText = text
middlePanel.balanceLabelText = text
}
// blocks UI if wallet can't be opened or no connection to the daemon
function enableUI(enable) {