Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
218f437b
Commit
218f437b
authored
Feb 13, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated window
parent
7336dfad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
main.qml
cmd/mist/assets/qml/main.qml
+6
-20
No files found.
cmd/mist/assets/qml/main.qml
View file @
218f437b
...
...
@@ -1054,38 +1054,24 @@ ApplicationWindow {
Window
{
id
:
addPeerWin
visible
:
false
minimumWidth
:
3
00
maximumWidth
:
3
00
minimumWidth
:
4
00
maximumWidth
:
4
00
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
.
currentT
ext
)
eth
.
connectToPeer
(
addrField
.
t
ext
)
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment