aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2016-11-26 15:50:04 +0100
committerJaquee <jaquee.monero@gmail.com>2016-11-26 19:37:34 +0100
commit36a6b89b540020957eb59e1b57bf6186e180afcb (patch)
treedda1c4384c22849611a26bb329a45cbdda9c90a5
parent93a8200e4afe78907b8a84d88e2dfe643cd40ae7 (diff)
downloadmonzero-gui-36a6b89b540020957eb59e1b57bf6186e180afcb.tar.gz
monzero-gui-36a6b89b540020957eb59e1b57bf6186e180afcb.tar.xz
monzero-gui-36a6b89b540020957eb59e1b57bf6186e180afcb.zip
connect onWalletConnectionStatusChanged()
-rw-r--r--main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index d0c77338..97b9934d 100644
--- a/main.qml
+++ b/main.qml
@@ -213,6 +213,7 @@ ApplicationWindow {
currentWallet.moneySpent.disconnect(onWalletMoneySent)
currentWallet.moneyReceived.disconnect(onWalletMoneyReceived)
currentWallet.transactionCreated.disconnect(onTransactionCreated)
+ currentWallet.connectionStatusChanged.disconnect(onWalletConnectionStatusChanged)
currentWallet.refreshed.connect(onWalletRefresh)
currentWallet.updated.connect(onWalletUpdate)
@@ -220,6 +221,7 @@ ApplicationWindow {
currentWallet.moneySpent.connect(onWalletMoneySent)
currentWallet.moneyReceived.connect(onWalletMoneyReceived)
currentWallet.transactionCreated.connect(onTransactionCreated)
+ currentWallet.connectionStatusChanged.connect(onWalletConnectionStatusChanged)
console.log("initializing with daemon address: ", persistentSettings.daemon_address)
@@ -233,6 +235,11 @@ ApplicationWindow {
return wallet_path;
}
+ function onWalletConnectionStatusChanged(){
+ console.log("Wallet connection status changed")
+ middlePanel.updateStatus();
+ }
+
function onWalletOpened(wallet) {
console.log(">>> wallet opened: " + wallet)
if (wallet.status !== Wallet.Status_Ok) {