aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2016-11-26 17:01:29 +0100
committerJaquee <jaquee.monero@gmail.com>2016-11-26 19:37:39 +0100
commitc7232e1fe67becb456afadf2b6fe89d59a08b5a0 (patch)
tree49e5e418193d565611ed3600abfc23846feab5ac
parent3f8e05d7a4891623bd34c62d82959eab80d079db (diff)
downloadmonzero-gui-c7232e1fe67becb456afadf2b6fe89d59a08b5a0.tar.gz
monzero-gui-c7232e1fe67becb456afadf2b6fe89d59a08b5a0.tar.xz
monzero-gui-c7232e1fe67becb456afadf2b6fe89d59a08b5a0.zip
set wallet connection status before querying sync status
-rw-r--r--main.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.qml b/main.qml
index 97b9934d..895b255d 100644
--- a/main.qml
+++ b/main.qml
@@ -288,17 +288,17 @@ ApplicationWindow {
hideProcessingSplash()
}
+ // Daemon connected
+ leftPanel.networkStatus.connected = currentWallet.connected
+
// Check daemon status
var dCurrentBlock = currentWallet.daemonBlockChainHeight();
var dTargetBlock = currentWallet.daemonBlockChainTargetHeight();
- leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
-
- // Daemon connected
- leftPanel.networkStatus.connected = currentWallet.connected
// Daemon fully synced
// TODO: implement onDaemonSynced or similar in wallet API and don't start refresh thread before daemon is synced
daemonSynced = (currentWallet.connected != Wallet.ConnectionStatus_Disconnected && dCurrentBlock >= dTargetBlock)
+ leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
// If wallet isnt connected and no daemon is running - Ask
if(currentWallet.connected === Wallet.ConnectionStatus_Disconnected && !daemonManager.running() && !walletInitialized){
@@ -336,6 +336,7 @@ ApplicationWindow {
appWindow.showProcessingSplash(qsTr("Waiting for daemon to start..."))
daemonManager.start();
}
+
function stopDaemon(){
appWindow.showProcessingSplash(qsTr("Waiting for daemon to stop..."))
daemonManager.stop();