From 8b26bc4a4d57e68f2229a4fa7f9d1d5b5acd9004 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Thu, 14 Jul 2016 13:40:27 +0300 Subject: [PATCH] Update network status dynamically (closes #17) --- LeftPanel.qml | 2 +- main.qml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/LeftPanel.qml b/LeftPanel.qml index 0c1ccd12..e23d353c 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -352,7 +352,7 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom - connected: true + connected: false } } } diff --git a/main.qml b/main.qml index 168591df..b55ace8c 100644 --- a/main.qml +++ b/main.qml @@ -162,6 +162,7 @@ ApplicationWindow { function onWalletRefresh() { console.log(">>> wallet refreshed") + leftPanel.networkStatus.connected = wallet.connected onWalletUpdate(); } @@ -363,6 +364,7 @@ ApplicationWindow { visible: appWindow.rightPanelExpanded } + MiddlePanel { id: middlePanel anchors.bottom: parent.bottom