forked from Public/monero-gui
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() {
|
||||
console.log("connecting remote node");
|
||||
persistentSettings.useRemoteNode = true;
|
||||
currentWallet.initAsync(persistentSettings.remoteNodeAddress);
|
||||
currentDaemonAddress = persistentSettings.remoteNodeAddress;
|
||||
currentWallet.initAsync(currentDaemonAddress);
|
||||
walletManager.setDaemonAddress(currentDaemonAddress);
|
||||
remoteNodeConnected = true;
|
||||
}
|
||||
|
||||
@@ -429,6 +431,7 @@ ApplicationWindow {
|
||||
persistentSettings.useRemoteNode = false;
|
||||
currentDaemonAddress = localDaemonAddress
|
||||
currentWallet.initAsync(currentDaemonAddress);
|
||||
walletManager.setDaemonAddress(currentDaemonAddress);
|
||||
remoteNodeConnected = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Rectangle {
|
||||
}
|
||||
|
||||
function update() {
|
||||
if (!appWindow.currentWallet) {
|
||||
if (!appWindow.currentWallet || !trackingEnabled.checked) {
|
||||
setTrackingLineText("-")
|
||||
return
|
||||
}
|
||||
@@ -325,6 +325,11 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
id: trackingEnabled
|
||||
text: qsTr("Enable") + translationManager.emptyString
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
id: trackingLine
|
||||
readOnly: true
|
||||
@@ -407,6 +412,8 @@ Rectangle {
|
||||
|
||||
update()
|
||||
timer.running = true
|
||||
|
||||
trackingEnabled.checked = false
|
||||
}
|
||||
|
||||
function onPageClosed() {
|
||||
|
||||
Reference in New Issue
Block a user