summaryrefslogtreecommitdiff
path: root/windowForgePatchsets.go
diff options
context:
space:
mode:
Diffstat (limited to 'windowForgePatchsets.go')
-rw-r--r--windowForgePatchsets.go73
1 files changed, 0 insertions, 73 deletions
diff --git a/windowForgePatchsets.go b/windowForgePatchsets.go
index c212f1d..c71f384 100644
--- a/windowForgePatchsets.go
+++ b/windowForgePatchsets.go
@@ -132,83 +132,10 @@ func (r *patchesWindow) submitPatchesBox() {
// r.addPatchsetNew(pset)
})
- psets, err := openPatchsets()
- if err != nil {
- log.Info("Open Patchsets failed", err)
- }
-
- grid.NewButton("Update Patchset List", func() {
- psets, err = me.forge.GetPatchesets()
- if err != nil {
- log.Info("Get Patchsets failed", err)
- return
- }
- savePatchsets(psets)
-
- /*
- 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
r.submitB.Disable()
grid.NextRow()
-
- g := r.stack.NewGroup("Patchset List")
- // add the grid
- r.psetgrid = g.RawGrid()
-
- // will look in ~/.config/forge for an existing patchset file
- // attempt to read in patchsets saved on disk
-
- 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)
- }
- */
- }
-}
-
-/*
-func (r *patchesWindow) addPatchsetNew(pset *forgepb.Patchset) {
- var win *patchWindow
- r.psetgrid.NewButton("View", func() {
- // has the window already been created?
- if win != nil {
- win.Toggle()
- return
- }
-
- // win = makePatchWindow(pset)
- // win.Show()
- })
- r.psetgrid.NewLabel(pset.Name)
- r.psetgrid.NewLabel(pset.Comment)
- r.psetgrid.NewLabel(pset.GitAuthorName)
- r.psetgrid.NewLabel(pset.Uuid)
-
- ctime := pset.Ctime.AsTime()
- stime := ctime.UTC().Format("2006-01-02_15:04:05_UTC")
- r.psetgrid.NewLabel(stime)
- if pset.State == "BROKEN" {
- r.psetgrid.NewLabel("Bad")
- } else {
- r.psetgrid.NewLabel("Good")
- }
-
- r.psetgrid.NextRow()
}
-*/
// will update this from the current state of the protobuf
func (r *patchesWindow) Update() {