diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 89f0c74..f4b4ee1 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -80,7 +80,6 @@ func globalDisplayOptions(vbox *gui.Node) { log.Info("re-scanning repos now") i, s := me.repos.View.ScanRepositories() log.Info("re-scanning repos done", i, s) - me.duration.SetText(s) }) var tagsW *tagWindow diff --git a/structs.go b/structs.go index 1e8a343..45df0a0 100644 --- a/structs.go +++ b/structs.go @@ -74,9 +74,6 @@ type autoType struct { // total patches, etc summary *patchSummary - // shows how long the scan went for - duration *gui.Node - // when switch to user or devel branches, autocreate them autoCreateBranches *gui.Node @@ -85,29 +82,3 @@ type autoType struct { newBranch *gui.Node setBranchB *gui.Node } - -/* -type repo struct { - hidden bool - lasttagrev string - lasttag string - giturl string - - pLabel *gui.Node // path label - - lastTag *gui.Node // last tagged version label - vLabel *gui.Node // version label - dirtyLabel *gui.Node // git state (dirty or not?) - goSumStatus *gui.Node // what is the state of the go.sum file - - masterVersion *gui.Node // the master branch version - develVersion *gui.Node // the devel branch version - userVersion *gui.Node // the user branch version - - endBox *gui.Node // a general box at the end of the row - statusButton *gui.Node // opens up the status window - diffButton *gui.Node // opens up the status window - - status *repostatus.RepoStatus -} -*/ diff --git a/submitPatches.go b/submitPatches.go index b4ebeaf..ac06aab 100644 --- a/submitPatches.go +++ b/submitPatches.go @@ -86,21 +86,13 @@ func submitPatchesBox(box *gui.Node) *patchSummary { s.totalUserRepos.SetText(strconv.Itoa(repocount) + " go repos") }) - // this Update is deprecated and probably should be the function above - /* - s.grid.NewButton("summary.Update()", func() { - // update the stats - s.Update() - }) - */ - - s.grid.NewButton("Make Patches", func() { /* this used to be the way and should probably be revisited + s.grid.NewButton("Make Patches", func() { for i, p := range s.allp { log.Info(i, p.Ref, p.RS.String()) } - */ }) + */ s.grid.NextRow() @@ -139,8 +131,12 @@ func submitPatchesBox(box *gui.Node) *patchSummary { s.grid.NewLabel("") s.grid.NewLabel("") - s.grid.NewButton("merge from user", func() {}) - s.grid.NewButton("merge from devel", func() {}) + s.grid.NewButton("merge from user", func() { + log.Info("this should make a patchset of your patches") + }) + s.grid.NewButton("merge from devel", func() { + log.Info("this probably should not exist") + }) s.grid.NextRow() group1 = box.NewGroup("Create GUI Patch Set")