From dd01f59a9c99a5aeea988218c57ca3f97f0fe785 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sat, 26 Nov 2016 13:15:25 +0100 Subject: [PATCH] hide daemon sync progress after disconnecting wallet --- components/DaemonProgress.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/DaemonProgress.qml b/components/DaemonProgress.qml index 1ed533e3..846c03d3 100644 --- a/components/DaemonProgress.qml +++ b/components/DaemonProgress.qml @@ -27,6 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import QtQuick 2.0 +import moneroComponents.Wallet 1.0 Item { id: item @@ -46,7 +47,7 @@ Item { // TODO: lower daemon block height cache, ttl and refresh interval? - item.visible = (currentBlock < targetBlock) + item.visible = (currentWallet.connected !== Wallet.ConnectionStatus_Disconnected) && (currentBlock < targetBlock) } }