SettingsNode: 'auto' special case for Bootstrap Address edit

This commit is contained in:
xiphon 2019-09-27 15:48:04 +00:00
parent d3b81cb6f8
commit 77ff362b58

View file

@ -451,7 +451,11 @@ Rectangle{
}
}
onEditingFinished: {
if (daemonAddrText == "auto") {
persistentSettings.bootstrapNodeAddress = daemonAddrText;
} else {
persistentSettings.bootstrapNodeAddress = daemonAddrText ? bootstrapNodeEdit.getAddress() : "";
}
console.log("setting bootstrap node to " + persistentSettings.bootstrapNodeAddress)
}
}