File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,14 @@ ApplicationWindow {
303
303
x: statusBar .width / 2 - this .width / 2
304
304
width: 160
305
305
}
306
+ Label {
307
+ objectName: " downloadLabel"
308
+ y: 7
309
+ anchors .left : downloadIndicator .right
310
+ anchors .leftMargin : 5
311
+ font .pixelSize : 10
312
+ text: " 0 / 0"
313
+ }
306
314
307
315
308
316
RowLayout {
Original file line number Diff line number Diff line change @@ -466,12 +466,17 @@ func (gui *Gui) update() {
466
466
var (
467
467
pct float64 = 1.0 / float64 (chainLength ) * float64 (blockLength )
468
468
dlWidget = gui .win .Root ().ObjectByName ("downloadIndicator" )
469
+ dlLabel = gui .win .Root ().ObjectByName ("downloadLabel" )
469
470
)
470
471
if pct < 1.0 {
471
472
dlWidget .Set ("visible" , true )
472
473
dlWidget .Set ("value" , pct )
474
+
475
+ dlLabel .Set ("visible" , true )
476
+ dlLabel .Set ("text" , fmt .Sprintf ("%d / %d" , blockLength , chainLength ))
473
477
} else {
474
478
dlWidget .Set ("visible" , false )
479
+ dlLabel .Set ("visible" , false )
475
480
}
476
481
477
482
case <- statsUpdateTicker .C :
You can’t perform that action at this time.
0 commit comments