From e4c3aafb7b48ee44b677ee6e5d244ad85aecf985 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 13 Feb 2024 13:33:04 -0600 Subject: [PATCH] more accurate name Signed-off-by: Jeff Carr --- main.go | 2 +- pkgsite.go | 2 +- summaryBox.go => submitPatches.go | 11 +++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) rename summaryBox.go => submitPatches.go (91%) diff --git a/main.go b/main.go index 87e2c3e..e070b65 100644 --- a/main.go +++ b/main.go @@ -33,7 +33,7 @@ func main() { vbox2 := box.NewVerticalBox("BOX2") globalBuildOptions(vbox2) - me.summary = summaryBox(vbox2) + me.summary = submitPatchesBox(vbox2) globalResetOptions(box) diff --git a/pkgsite.go b/pkgsite.go index 6656c39..db61518 100644 --- a/pkgsite.go +++ b/pkgsite.go @@ -6,8 +6,8 @@ import ( "path/filepath" "go.wit.com/gui" - "go.wit.com/log" "go.wit.com/lib/gui/shell" + "go.wit.com/log" ) func docsBox(vbox *gui.Node) { diff --git a/summaryBox.go b/submitPatches.go similarity index 91% rename from summaryBox.go rename to submitPatches.go index c40ba2b..510479c 100644 --- a/summaryBox.go +++ b/submitPatches.go @@ -23,9 +23,9 @@ type develSummary struct { allp []*patch } -func summaryBox(box *gui.Node) *develSummary { +func submitPatchesBox(box *gui.Node) *develSummary { s := new(develSummary) - group1 := box.NewGroup("Development Branch Summary") + group1 := box.NewGroup("Submit Patches Summary") s.grid = group1.RawGrid() s.updateB = s.grid.NewButton("Update Stats", func() { @@ -40,6 +40,13 @@ func summaryBox(box *gui.Node) *develSummary { } }) + s.updateB = s.grid.NewButton("Check repos are working", func() { + for _, repo := range me.allrepos { + log.Info("Check repo here:", repo.String()) + return + } + }) + s.grid.NextRow() s.totalOL = gadgets.NewOneLiner(s.grid, "Total")