1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-19 13:37:13 +01:00

added comma/locale separation to sync counter

This commit is contained in:
Jacob Brydolf 2016-10-04 22:22:59 +02:00 committed by Ilya Kitaev
parent 8b748bf25d
commit 49018390dc

View File

@ -260,7 +260,10 @@ ApplicationWindow {
var currHeight = blockHeight.toFixed(0)
if(currHeight > splashCounter + 1000){
splashCounter = currHeight
var progressText = qsTr("Synchronizing blocks %1/%2").arg(currHeight).arg(currentWallet.daemonBlockChainHeight().toFixed(0));
var locale = Qt.locale()
var currHeightString = currHeight.toLocaleString(locale,"f",0)
var targetHeightString = currentWallet.daemonBlockChainHeight().toLocaleString(locale,"f",0)
var progressText = qsTr("Synchronizing blocks %1/%2").arg(currHeightString).arg(targetHeightString);
console.log("Progress text: " + progressText);
splash.heightProgressText = progressText
}