1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-26 01:23:44 +01:00

NetworkStatusItem: correctly display remote node status

This commit is contained in:
selsta 2019-06-21 00:43:29 +02:00
parent d1e8b6f823
commit 484d403921
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
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
@ -608,7 +607,6 @@ ApplicationWindow {
currentDaemonAddress = persistentSettings.remoteNodeAddress;
currentWallet.initAsync(currentDaemonAddress);
walletManager.setDaemonAddressAsync(currentDaemonAddress);
remoteNodeConnected = true;
}
function disconnectRemoteNode() {
@ -620,7 +618,6 @@ ApplicationWindow {
currentDaemonAddress = localDaemonAddress
currentWallet.initAsync(currentDaemonAddress);
walletManager.setDaemonAddressAsync(currentDaemonAddress);
remoteNodeConnected = false;
}
function onHeightRefreshed(bcHeight, dCurrentBlock, dTargetBlock) {