diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/NetworkStatusItem.qml | 5 | ||||
| -rw-r--r-- | components/ProgressBar.qml | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/components/NetworkStatusItem.qml b/components/NetworkStatusItem.qml index 6667b974..7b0187b4 100644 --- a/components/NetworkStatusItem.qml +++ b/components/NetworkStatusItem.qml @@ -48,8 +48,11 @@ Row { } function getConnectionStatusString(status) { - if (status == Wallet.ConnectionStatus_Connected) + if (status == Wallet.ConnectionStatus_Connected) { + if(!appWindow.daemonSynced) + return qsTr("Synchronizing") return qsTr("Connected") + } if (status == Wallet.ConnectionStatus_WrongVersion) return qsTr("Wrong version") if (status == Wallet.ConnectionStatus_Disconnected) diff --git a/components/ProgressBar.qml b/components/ProgressBar.qml index ec53ec61..8462bbf5 100644 --- a/components/ProgressBar.qml +++ b/components/ProgressBar.qml @@ -38,6 +38,13 @@ Item { //clip: true function updateProgress(currentBlock,targetBlock){ + if(targetBlock == 1) { + fillLevel = 0 + progressText.text = qsTr("Establishing connection..."); + progressBar.visible = true + return + } + if(targetBlock > 0) { var progressLevel = ((currentBlock/targetBlock) * 100).toFixed(0); fillLevel = progressLevel |
