diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-09-26 22:55:25 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-09-26 22:55:25 +0300 |
| commit | f402fd9e7d26f5b2bc56c55322a7a97ebb3dbe66 (patch) | |
| tree | 0a27984eaf33c9af6b72d1930693d2f32d1d923d /main.qml | |
| parent | 7e769b3a87c9eda69d0506c9ce13859bafc50951 (diff) | |
| download | monzero-gui-f402fd9e7d26f5b2bc56c55322a7a97ebb3dbe66.tar.gz monzero-gui-f402fd9e7d26f5b2bc56c55322a7a97ebb3dbe66.tar.xz monzero-gui-f402fd9e7d26f5b2bc56c55322a7a97ebb3dbe66.zip | |
Wallet::daemonBlockChainHeight(); BC sync progress in GUI
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -156,8 +156,12 @@ ApplicationWindow { currentWallet = wallet currentWallet.refreshed.connect(onWalletRefresh) currentWallet.updated.connect(onWalletUpdate) + currentWallet.newBlock.connect(onWalletNewBlock) + console.log("initializing with daemon address: ", persistentSettings.daemon_address) + currentWallet.initAsync(persistentSettings.daemon_address, 0); + } function walletPath() { @@ -219,6 +223,14 @@ ApplicationWindow { onWalletUpdate(); } + function onWalletNewBlock(blockHeight) { + if (splash.visible) { + var progressText = qsTr("Synchronizing blocks %1/%2").arg(blockHeight.toFixed(0)).arg(currentWallet.daemonBlockChainHeight().toFixed(0)); + console.log("Progress text: " + progressText); + splash.heightProgressText = progressText + } + } + function walletsFound() { var wallets = walletManager.findWallets(moneroAccountsDir); @@ -418,7 +430,7 @@ ApplicationWindow { height: appWindow.height / 2 x: (appWindow.width - width) / 2 + appWindow.x y: (appWindow.height - height) / 2 + appWindow.y - message: qsTr("Please wait...") + messageText: qsTr("Please wait...") } |
