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
5053ec21
Commit
5053ec21
authored
Oct 01, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added download label
parent
6db40ecb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
main.qml
mist/assets/qml/main.qml
+8
-0
gui.go
mist/gui.go
+5
-0
No files found.
mist/assets/qml/main.qml
View file @
5053ec21
...
...
@@ -303,6 +303,14 @@ ApplicationWindow {
x
:
statusBar
.
width
/
2
-
this
.
width
/
2
width
:
160
}
Label
{
objectName
:
"downloadLabel"
y
:
7
anchors.left
:
downloadIndicator
.
right
anchors.leftMargin
:
5
font.pixelSize
:
10
text
:
"0 / 0"
}
RowLayout
{
...
...
mist/gui.go
View file @
5053ec21
...
...
@@ -466,12 +466,17 @@ func (gui *Gui) update() {
var
(
pct
float64
=
1.0
/
float64
(
chainLength
)
*
float64
(
blockLength
)
dlWidget
=
gui
.
win
.
Root
()
.
ObjectByName
(
"downloadIndicator"
)
dlLabel
=
gui
.
win
.
Root
()
.
ObjectByName
(
"downloadLabel"
)
)
if
pct
<
1.0
{
dlWidget
.
Set
(
"visible"
,
true
)
dlWidget
.
Set
(
"value"
,
pct
)
dlLabel
.
Set
(
"visible"
,
true
)
dlLabel
.
Set
(
"text"
,
fmt
.
Sprintf
(
"%d / %d"
,
blockLength
,
chainLength
))
}
else
{
dlWidget
.
Set
(
"visible"
,
false
)
dlLabel
.
Set
(
"visible"
,
false
)
}
case
<-
statsUpdateTicker
.
C
:
...
...
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