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:
parent
8b748bf25d
commit
49018390dc
5
main.qml
5
main.qml
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user