diff --git a/main.go b/main.go index 1c83220..e63d43d 100644 --- a/main.go +++ b/main.go @@ -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 diff --git a/submitPatches.go b/submitPatches.go index 5507b1e..ee4051b 100644 --- a/submitPatches.go +++ b/submitPatches.go @@ -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() {