diff options
Diffstat (limited to 'windowForgePatchsets.go')
| -rw-r--r-- | windowForgePatchsets.go | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/windowForgePatchsets.go b/windowForgePatchsets.go index d1805a1..c212f1d 100644 --- a/windowForgePatchsets.go +++ b/windowForgePatchsets.go @@ -11,7 +11,6 @@ import ( "strconv" "go.wit.com/lib/gadgets" - "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" "go.wit.com/gui" @@ -102,8 +101,10 @@ func (r *patchesWindow) submitPatchesBox() { log.Info("you have no current patches") return } - win := makePatchWindow(pset) - win.Show() + /* + win := makePatchWindow(pset) + win.Show() + */ }) r.reason = gadgets.NewBasicEntry(grid, "Patchset name:") @@ -123,12 +124,12 @@ func (r *patchesWindow) submitPatchesBox() { log.Info("submit button is disabled. BAD GUI TOOLKIT ERROR") return } - pset, err := me.forge.SubmitDevelPatchSet(r.reason.String()) - if err != nil { - log.Info(err) - return - } - r.addPatchsetNew(pset) + // pset, err := me.forge.SubmitDevelPatchSet(r.reason.String()) + // if err != nil { + // log.Info(err) + // return + // } + // r.addPatchsetNew(pset) }) psets, err := openPatchsets() @@ -144,12 +145,14 @@ func (r *patchesWindow) submitPatchesBox() { } savePatchsets(psets) - log.Info("got psets len", len(psets.Patchsets)) - all := psets.SortByName() - for all.Scan() { - pset := all.Next() - r.addPatchsetNew(pset) - } + /* + log.Info("got psets len", len(psets.Patchsets)) + all := psets.SortByName() + for all.Scan() { + pset := all.Next() + r.addPatchsetNew(pset) + } + */ }) // disables the submit button until the user enters a name @@ -165,15 +168,18 @@ func (r *patchesWindow) submitPatchesBox() { if psets != nil { log.Info("got psets len", len(psets.Patchsets)) - all := psets.SortByName() - for all.Scan() { - pset := all.Next() - // log.Info("pset name =", pset.Name) - r.addPatchsetNew(pset) - } + /* + all := psets.SortByName() + for all.Scan() { + pset := all.Next() + log.Info("pset name =", pset.Name) + r.addPatchsetNew(pset) + } + */ } } +/* func (r *patchesWindow) addPatchsetNew(pset *forgepb.Patchset) { var win *patchWindow r.psetgrid.NewButton("View", func() { @@ -183,8 +189,8 @@ func (r *patchesWindow) addPatchsetNew(pset *forgepb.Patchset) { return } - win = makePatchWindow(pset) - win.Show() + // win = makePatchWindow(pset) + // win.Show() }) r.psetgrid.NewLabel(pset.Name) r.psetgrid.NewLabel(pset.Comment) @@ -202,6 +208,7 @@ func (r *patchesWindow) addPatchsetNew(pset *forgepb.Patchset) { r.psetgrid.NextRow() } +*/ // will update this from the current state of the protobuf func (r *patchesWindow) Update() { |
