general claenups

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-21 02:50:50 -06:00
parent 42c506c098
commit 584b93cab0
3 changed files with 8 additions and 42 deletions

View File

@ -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

View File

@ -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
}
*/

View File

@ -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")