mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-31 22:26:23 +01:00
settingsnode: enable trusted daemon option
This commit is contained in:
parent
0064e595c3
commit
bd42200a29
1
main.qml
1
main.qml
@ -1033,6 +1033,7 @@ ApplicationWindow {
|
||||
property string daemon_address: nettype == NetworkType.TESTNET ? "localhost:28081" : nettype == NetworkType.STAGENET ? "localhost:38081" : "localhost:18081"
|
||||
property string payment_id
|
||||
property int restore_height : 0
|
||||
property bool is_trusted_daemon : false
|
||||
property bool is_recovering : false
|
||||
property bool is_recovering_from_device : false
|
||||
property bool customDecorations : true
|
||||
|
@ -298,7 +298,12 @@ Rectangle{
|
||||
daemonPortText: rna.search(":") != -1 ? (rna.split(":")[1].trim() == "") ? "18081" : rna.split(":")[1] : ""
|
||||
onEditingFinished: {
|
||||
persistentSettings.remoteNodeAddress = remoteNodeEdit.getAddress();
|
||||
console.log("setting remote node to " + persistentSettings.remoteNodeAddress)
|
||||
console.log("setting remote node to " + persistentSettings.remoteNodeAddress);
|
||||
if (persistentSettings.is_trusted_daemon) {
|
||||
persistentSettings.is_trusted_daemon = !persistentSettings.is_trusted_daemon
|
||||
setTrustedDaemonCheckBox.checked = !setTrustedDaemonCheckBox.checked
|
||||
appWindow.showStatusMessage(qsTr("Remote node updated. Trusted daemon has been reset. Mark again, if desired."), 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -330,6 +335,16 @@ Rectangle{
|
||||
}
|
||||
}
|
||||
|
||||
MoneroComponents.CheckBox {
|
||||
id: setTrustedDaemonCheckBox
|
||||
checked: persistentSettings.is_trusted_daemon
|
||||
onClicked: {
|
||||
persistentSettings.is_trusted_daemon = !persistentSettings.is_trusted_daemon
|
||||
currentWallet.setTrustedDaemon(persistentSettings.is_trusted_daemon)
|
||||
}
|
||||
text: qsTr("Mark as Trusted Daemon") + translationManager.emptyString
|
||||
}
|
||||
|
||||
MoneroComponents.StandardButton {
|
||||
id: btnConnectRemote
|
||||
enabled: remoteNodeEdit.isValid()
|
||||
|
Loading…
Reference in New Issue
Block a user