aboutsummaryrefslogtreecommitdiffstats
path: root/mist/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-02 07:37:23 +0800
committerobscuren <geffobscura@gmail.com>2014-10-02 07:37:23 +0800
commit5053ec21902727864d77664556fee144514bfa85 (patch)
tree0a011c5d882064abf2a781dc2bd2a1628bd68bf7 /mist/gui.go
parent6db40ecb22c28a777f4ab1cd4de5a12e41ac669d (diff)
downloaddexon-5053ec21902727864d77664556fee144514bfa85.tar
dexon-5053ec21902727864d77664556fee144514bfa85.tar.gz
dexon-5053ec21902727864d77664556fee144514bfa85.tar.bz2
dexon-5053ec21902727864d77664556fee144514bfa85.tar.lz
dexon-5053ec21902727864d77664556fee144514bfa85.tar.xz
dexon-5053ec21902727864d77664556fee144514bfa85.tar.zst
dexon-5053ec21902727864d77664556fee144514bfa85.zip
Added download label
Diffstat (limited to 'mist/gui.go')
-rw-r--r--mist/gui.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/mist/gui.go b/mist/gui.go
index 45ef66624..7d851243f 100644
--- a/mist/gui.go
+++ b/mist/gui.go
@@ -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: