From ceeb9b667fa35f92054c79942b593337fadcd08b Mon Sep 17 00:00:00 2001 From: Jaquee Date: Fri, 3 Nov 2017 18:08:59 +0100 Subject: [PATCH] do not try to start local node automatically if user has cancelled --- main.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index f8015c49..c98e9efe 100644 --- a/main.qml +++ b/main.qml @@ -73,6 +73,7 @@ ApplicationWindow { // Default daemon addresses readonly property string localDaemonAddress : !persistentSettings.testnet ? "localhost:18081" : "localhost:28081" property string currentDaemonAddress; + property bool startLocalNodeCancelled: false // true if wallet ever synchronized property bool walletInitialized : false @@ -425,7 +426,7 @@ ApplicationWindow { if(localNodeConnected) { leftPanel.progressBar.updateProgress(walletManager.blockchainHeight(),walletManager.blockchainTargetHeight(), 0, qsTr("Remaining blocks (local node):")); leftPanel.progressBar.visible = true - } else if (persistentSettings.startLocalNode) { + } else if (persistentSettings.startLocalNode && !startLocalNodeCancelled) { daemonManagerDialog.open() } @@ -1149,6 +1150,7 @@ ApplicationWindow { id: daemonManagerDialog onRejected: { loadPage("Settings"); + startLocalNodeCancelled = true } }