update summary statistics

This commit is contained in:
Jeff Carr 2024-02-14 13:43:43 -06:00
parent 55b175e2da
commit 61af996b84
2 changed files with 9 additions and 6 deletions

View File

@ -50,6 +50,9 @@ func main() {
}
me.Enable()
// processing is done. update the repo summary box
me.summary.Update()
// scan repos every 30 seconds
// check every second for the checkbox changing
var i int = 60

View File

@ -47,16 +47,12 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
group1 := box.NewGroup("Submit Patches Summary")
s.grid = group1.RawGrid()
s.updateB = s.grid.NewButton("Update Stats", func() {
// globalDisplaySetRepoState()
// reposwin.Toggle()
s.Update()
})
s.grid.NewButton("List Patches", func() {
for i, p := range s.allp {
log.Info(i, p.ref, p.rs.String())
}
// update the stats
s.Update()
})
s.gitPullB = s.grid.NewButton("git pull", func() {
@ -75,6 +71,8 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
}
}
s.gitPullB.SetText("GOOD")
// update the stats
s.Update()
})
s.gitPushB = s.grid.NewButton("git push", func() {
@ -92,6 +90,8 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
}
}
s.gitPushB.SetText("GOOD")
// update the stats
s.Update()
})
s.checkB = s.grid.NewButton("Check repos are working", func() {