mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-01 08:11:54 +01:00
Merge pull request #1286
cd4418d
Receive: make tracking optionala9331a7
Set daemon address to WalletManager (requires #3576)
This commit is contained in:
commit
1956f5896d
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user