Merge pull request #2230

484d403 NetworkStatusItem: correctly display remote node status (selsta)
This commit is contained in:
luigi1111 2019-06-21 14:44:53 -05:00
commit 30997a8262
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 1 additions and 4 deletions

View file

@ -41,7 +41,7 @@ Rectangle {
if (status == Wallet.ConnectionStatus_Connected) {
if(!appWindow.daemonSynced)
return qsTr("Synchronizing")
if(appWindow.remoteNodeConnected)
if(persistentSettings.useRemoteNode)
return qsTr("Remote node")
return appWindow.isMining ? qsTr("Connected") + " + " + qsTr("Mining"): qsTr("Connected")
}

View file

@ -76,7 +76,6 @@ ApplicationWindow {
property bool isMining: false
property int walletMode: persistentSettings.walletMode
property var cameraUi
property bool remoteNodeConnected: false
property bool androidCloseTapped: false;
property int userLastActive; // epoch
// Default daemon addresses
@ -607,7 +606,6 @@ ApplicationWindow {
currentDaemonAddress = persistentSettings.remoteNodeAddress;
currentWallet.initAsync(currentDaemonAddress);
walletManager.setDaemonAddressAsync(currentDaemonAddress);
remoteNodeConnected = true;
}
function disconnectRemoteNode() {
@ -619,7 +617,6 @@ ApplicationWindow {
currentDaemonAddress = localDaemonAddress
currentWallet.initAsync(currentDaemonAddress);
walletManager.setDaemonAddressAsync(currentDaemonAddress);
remoteNodeConnected = false;
}
function onHeightRefreshed(bcHeight, dCurrentBlock, dTargetBlock) {