mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
added comma/locale separation to sync counter
This commit is contained in:
parent
8b748bf25d
commit
49018390dc
1 changed files with 4 additions and 1 deletions
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 a new issue