aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authormoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-12-31 13:47:40 +0000
committermoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-12-31 13:47:40 +0000
commit192bfc70b0a45ec93e6cbfe4b04afa9d41009c0d (patch)
treed2b3f0172824859a3b6fe7f0454d26a33022b3db /main.qml
parentd8f9e7360fdbab910283c465aafe36149b1d7f26 (diff)
downloadmonzero-gui-192bfc70b0a45ec93e6cbfe4b04afa9d41009c0d.tar.gz
monzero-gui-192bfc70b0a45ec93e6cbfe4b04afa9d41009c0d.tar.xz
monzero-gui-192bfc70b0a45ec93e6cbfe4b04afa9d41009c0d.zip
Add "(syncing)" after balance when syncing
Should cut down on people wondering why their balance is wrong
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index e3bc1871..1ee677a4 100644
--- a/main.qml
+++ b/main.qml
@@ -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) {