forked from Public/monero-gui
Fixes runtime QML warning
This commit is contained in:
committed by
moneromooo-monero
parent
3f9926487d
commit
c001e31241
@@ -256,7 +256,14 @@ Rectangle {
|
||||
daemonAddrLabelText: qsTr("Address")
|
||||
daemonPortLabelText: qsTr("Port")
|
||||
daemonAddrText: persistentSettings.bootstrapNodeAddress.split(":")[0].trim()
|
||||
daemonPortText: (persistentSettings.bootstrapNodeAddress.split(":")[1].trim() == "") ? "18081" : persistentSettings.bootstrapNodeAddress.split(":")[1]
|
||||
daemonPortText: {
|
||||
var node_split = persistentSettings.bootstrapNodeAddress.split(":");
|
||||
if(node_split.length == 2){
|
||||
(node_split[1].trim() == "") ? "18081" : node_split[1];
|
||||
} else {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
onEditingFinished: {
|
||||
persistentSettings.bootstrapNodeAddress = daemonAddrText ? bootstrapNodeEdit.getAddress() : "";
|
||||
console.log("setting bootstrap node to " + persistentSettings.bootstrapNodeAddress)
|
||||
|
||||
Reference in New Issue
Block a user