mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-08 11:57:26 -04:00
Improved blockchain sync status ui
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user