aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-11-03 18:08:59 +0100
committerJaquee <jaquee.monero@gmail.com>2017-11-03 18:08:59 +0100
commitceeb9b667fa35f92054c79942b593337fadcd08b (patch)
treeb50d0010ac51fa44405bcaec573dab03236ff9cb
parent3c67b9ee621ccdaf4ebead21e7c02e987566c068 (diff)
downloadmonzero-gui-ceeb9b667fa35f92054c79942b593337fadcd08b.tar.gz
monzero-gui-ceeb9b667fa35f92054c79942b593337fadcd08b.tar.xz
monzero-gui-ceeb9b667fa35f92054c79942b593337fadcd08b.zip
do not try to start local node automatically if user has cancelled
-rw-r--r--main.qml4
1 files changed, 3 insertions, 1 deletions
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
}
}