mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-28 18:56:32 +02:00
do not try to start local node automatically if user has cancelled
This commit is contained in:
parent
3c67b9ee62
commit
ceeb9b667f
4
main.qml
4
main.qml
@ -73,6 +73,7 @@ ApplicationWindow {
|
|||||||
// Default daemon addresses
|
// Default daemon addresses
|
||||||
readonly property string localDaemonAddress : !persistentSettings.testnet ? "localhost:18081" : "localhost:28081"
|
readonly property string localDaemonAddress : !persistentSettings.testnet ? "localhost:18081" : "localhost:28081"
|
||||||
property string currentDaemonAddress;
|
property string currentDaemonAddress;
|
||||||
|
property bool startLocalNodeCancelled: false
|
||||||
|
|
||||||
// true if wallet ever synchronized
|
// true if wallet ever synchronized
|
||||||
property bool walletInitialized : false
|
property bool walletInitialized : false
|
||||||
@ -425,7 +426,7 @@ ApplicationWindow {
|
|||||||
if(localNodeConnected) {
|
if(localNodeConnected) {
|
||||||
leftPanel.progressBar.updateProgress(walletManager.blockchainHeight(),walletManager.blockchainTargetHeight(), 0, qsTr("Remaining blocks (local node):"));
|
leftPanel.progressBar.updateProgress(walletManager.blockchainHeight(),walletManager.blockchainTargetHeight(), 0, qsTr("Remaining blocks (local node):"));
|
||||||
leftPanel.progressBar.visible = true
|
leftPanel.progressBar.visible = true
|
||||||
} else if (persistentSettings.startLocalNode) {
|
} else if (persistentSettings.startLocalNode && !startLocalNodeCancelled) {
|
||||||
daemonManagerDialog.open()
|
daemonManagerDialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1149,6 +1150,7 @@ ApplicationWindow {
|
|||||||
id: daemonManagerDialog
|
id: daemonManagerDialog
|
||||||
onRejected: {
|
onRejected: {
|
||||||
loadPage("Settings");
|
loadPage("Settings");
|
||||||
|
startLocalNodeCancelled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user