mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-16 18:47:27 -04:00
Merge pull request #1286
cd4418dReceive: make tracking optionala9331a7Set daemon address to WalletManager (requires #3576)
This commit is contained in:
5
main.qml
5
main.qml
@@ -420,7 +420,9 @@ ApplicationWindow {
|
|||||||
function connectRemoteNode() {
|
function connectRemoteNode() {
|
||||||
console.log("connecting remote node");
|
console.log("connecting remote node");
|
||||||
persistentSettings.useRemoteNode = true;
|
persistentSettings.useRemoteNode = true;
|
||||||
currentWallet.initAsync(persistentSettings.remoteNodeAddress);
|
currentDaemonAddress = persistentSettings.remoteNodeAddress;
|
||||||
|
currentWallet.initAsync(currentDaemonAddress);
|
||||||
|
walletManager.setDaemonAddress(currentDaemonAddress);
|
||||||
remoteNodeConnected = true;
|
remoteNodeConnected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -429,6 +431,7 @@ ApplicationWindow {
|
|||||||
persistentSettings.useRemoteNode = false;
|
persistentSettings.useRemoteNode = false;
|
||||||
currentDaemonAddress = localDaemonAddress
|
currentDaemonAddress = localDaemonAddress
|
||||||
currentWallet.initAsync(currentDaemonAddress);
|
currentWallet.initAsync(currentDaemonAddress);
|
||||||
|
walletManager.setDaemonAddress(currentDaemonAddress);
|
||||||
remoteNodeConnected = false;
|
remoteNodeConnected = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
if (!appWindow.currentWallet) {
|
if (!appWindow.currentWallet || !trackingEnabled.checked) {
|
||||||
setTrackingLineText("-")
|
setTrackingLineText("-")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -325,6 +325,11 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: trackingEnabled
|
||||||
|
text: qsTr("Enable") + translationManager.emptyString
|
||||||
|
}
|
||||||
|
|
||||||
TextEdit {
|
TextEdit {
|
||||||
id: trackingLine
|
id: trackingLine
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -407,6 +412,8 @@ Rectangle {
|
|||||||
|
|
||||||
update()
|
update()
|
||||||
timer.running = true
|
timer.running = true
|
||||||
|
|
||||||
|
trackingEnabled.checked = false
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPageClosed() {
|
function onPageClosed() {
|
||||||
|
|||||||
Reference in New Issue
Block a user