mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 03:12:05 +02:00
Merge pull request #2230
484d403
NetworkStatusItem: correctly display remote node status (selsta)
This commit is contained in:
commit
30997a8262
@ -41,7 +41,7 @@ Rectangle {
|
|||||||
if (status == Wallet.ConnectionStatus_Connected) {
|
if (status == Wallet.ConnectionStatus_Connected) {
|
||||||
if(!appWindow.daemonSynced)
|
if(!appWindow.daemonSynced)
|
||||||
return qsTr("Synchronizing")
|
return qsTr("Synchronizing")
|
||||||
if(appWindow.remoteNodeConnected)
|
if(persistentSettings.useRemoteNode)
|
||||||
return qsTr("Remote node")
|
return qsTr("Remote node")
|
||||||
return appWindow.isMining ? qsTr("Connected") + " + " + qsTr("Mining"): qsTr("Connected")
|
return appWindow.isMining ? qsTr("Connected") + " + " + qsTr("Mining"): qsTr("Connected")
|
||||||
}
|
}
|
||||||
|
3
main.qml
3
main.qml
@ -76,7 +76,6 @@ ApplicationWindow {
|
|||||||
property bool isMining: false
|
property bool isMining: false
|
||||||
property int walletMode: persistentSettings.walletMode
|
property int walletMode: persistentSettings.walletMode
|
||||||
property var cameraUi
|
property var cameraUi
|
||||||
property bool remoteNodeConnected: false
|
|
||||||
property bool androidCloseTapped: false;
|
property bool androidCloseTapped: false;
|
||||||
property int userLastActive; // epoch
|
property int userLastActive; // epoch
|
||||||
// Default daemon addresses
|
// Default daemon addresses
|
||||||
@ -607,7 +606,6 @@ ApplicationWindow {
|
|||||||
currentDaemonAddress = persistentSettings.remoteNodeAddress;
|
currentDaemonAddress = persistentSettings.remoteNodeAddress;
|
||||||
currentWallet.initAsync(currentDaemonAddress);
|
currentWallet.initAsync(currentDaemonAddress);
|
||||||
walletManager.setDaemonAddressAsync(currentDaemonAddress);
|
walletManager.setDaemonAddressAsync(currentDaemonAddress);
|
||||||
remoteNodeConnected = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function disconnectRemoteNode() {
|
function disconnectRemoteNode() {
|
||||||
@ -619,7 +617,6 @@ ApplicationWindow {
|
|||||||
currentDaemonAddress = localDaemonAddress
|
currentDaemonAddress = localDaemonAddress
|
||||||
currentWallet.initAsync(currentDaemonAddress);
|
currentWallet.initAsync(currentDaemonAddress);
|
||||||
walletManager.setDaemonAddressAsync(currentDaemonAddress);
|
walletManager.setDaemonAddressAsync(currentDaemonAddress);
|
||||||
remoteNodeConnected = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onHeightRefreshed(bcHeight, dCurrentBlock, dTargetBlock) {
|
function onHeightRefreshed(bcHeight, dCurrentBlock, dTargetBlock) {
|
||||||
|
Loading…
Reference in New Issue
Block a user