diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-14 00:30:37 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-14 00:30:37 +0800 |
commit | 218f437b0c2a80aa189e703520b5e1a5b9841b0f (patch) | |
tree | feea14724ceea98a5d6e9417b1f3a814c0f2488a /cmd | |
parent | 7336dfad02833989037440fb22e01566444d0100 (diff) | |
download | go-tangerine-218f437b0c2a80aa189e703520b5e1a5b9841b0f.tar.gz go-tangerine-218f437b0c2a80aa189e703520b5e1a5b9841b0f.tar.zst go-tangerine-218f437b0c2a80aa189e703520b5e1a5b9841b0f.zip |
Updated window
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mist/assets/qml/main.qml | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/cmd/mist/assets/qml/main.qml b/cmd/mist/assets/qml/main.qml index dce279518..1d6b15ac1 100644 --- a/cmd/mist/assets/qml/main.qml +++ b/cmd/mist/assets/qml/main.qml @@ -1054,38 +1054,24 @@ ApplicationWindow { Window { id: addPeerWin visible: false - minimumWidth: 300 - maximumWidth: 300 + minimumWidth: 400 + maximumWidth: 400 maximumHeight: 50 minimumHeight: 50 title: "Connect to peer" - ComboBox { + TextField { id: addrField anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.right: addPeerButton.left anchors.leftMargin: 10 anchors.rightMargin: 10 + placeholderText: "enode://<hex node id>:<IP address>:<port>" onAccepted: { - eth.connectToPeer(addrField.currentText) + eth.connectToPeer(addrField.text) addPeerWin.visible = false } - - editable: true - model: ListModel { id: pastPeers } - - Component.onCompleted: { - pastPeers.insert(0, {text: "poc-8.ethdev.com:30303"}) - /* - var ips = eth.pastPeers() - for(var i = 0; i < ips.length; i++) { - pastPeers.append({text: ips.get(i)}) - } - - pastPeers.insert(0, {text: "poc-7.ethdev.com:30303"}) - */ - } } Button { @@ -1093,7 +1079,7 @@ ApplicationWindow { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter anchors.rightMargin: 10 - text: "Add" + text: "Connect" onClicked: { eth.connectToPeer(addrField.currentText) addPeerWin.visible = false |