aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-06-21 00:43:29 +0200
committerselsta <selsta@sent.at>2019-06-21 00:43:29 +0200
commit484d40392127c59c87c2d2889c1521bfdc423790 (patch)
tree363bf87e19066d41ef2edb5eb2121828b8bbd8fa
parentd1e8b6f823d85a5d258a5c882aae31afd5d7f530 (diff)
downloadmonzero-gui-484d40392127c59c87c2d2889c1521bfdc423790.tar.gz
monzero-gui-484d40392127c59c87c2d2889c1521bfdc423790.tar.xz
monzero-gui-484d40392127c59c87c2d2889c1521bfdc423790.zip
NetworkStatusItem: correctly display remote node status
-rw-r--r--components/NetworkStatusItem.qml2
-rw-r--r--main.qml3
2 files changed, 1 insertions, 4 deletions
diff --git a/components/NetworkStatusItem.qml b/components/NetworkStatusItem.qml
index 7533be81..77ef4afa 100644
--- a/components/NetworkStatusItem.qml
+++ b/components/NetworkStatusItem.qml
@@ -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")
}
diff --git a/main.qml b/main.qml
index d4bb6838..66257713 100644
--- a/main.qml
+++ b/main.qml
@@ -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) {