removed persistentSettings.startLocalNode as it's synonym for !persistentSettings.useRemoteNode

This commit is contained in:
stoffu 2018-01-24 14:43:24 +09:00
parent 5c664685da
commit 89ec822ba5
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012
3 changed files with 3 additions and 5 deletions

View File

@ -436,7 +436,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 && !startLocalNodeCancelled) {
} else if (!persistentSettings.useRemoteNode && !startLocalNodeCancelled) {
daemonManagerDialog.open()
}
@ -1004,7 +1004,6 @@ ApplicationWindow {
property string daemonPassword: ""
property bool transferShowAdvanced: false
property string blockchainDataDir: ""
property bool startLocalNode: true
property bool useRemoteNode: false
property string remoteNodeAddress: ""
}

View File

@ -296,7 +296,7 @@ Rectangle {
ColumnLayout {
id: blockchainFolderRow
visible: !isMobile
visible: !isMobile && !persistentSettings.useRemoteNode
Label {
id: blockchainFolderLabel
color: "#4A4949"

View File

@ -54,7 +54,6 @@ ColumnLayout {
function onPageClosed(settingsObject) {
appWindow.persistentSettings.useRemoteNode = remoteNode.checked
appWindow.persistentSettings.startLocalNode = localNode.checked
appWindow.persistentSettings.remoteNodeAddress = remoteNodeEdit.getAddress();
return true
}
@ -129,7 +128,7 @@ ColumnLayout {
fontSize: 16 * scaleRatio
checkedIcon: "../images/checkedVioletIcon.png"
uncheckedIcon: "../images/uncheckedIcon.png"
checked: appWindow.persistentSettings.startLocalNode && !isAndroid && !isIOS
checked: !appWindow.persistentSettings.useRemoteNode && !isAndroid && !isIOS
visible: !isAndroid && !isIOS
}
}