diff options
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 56 |
1 files changed, 18 insertions, 38 deletions
@@ -13,7 +13,6 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/shell" - "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -159,24 +158,26 @@ func drawWindow(win *gadgets.GenericWindow) { } // me.forge.GetPatches() // loadUpstreamPatchsets() - if me.psets == nil { - log.Info("failed to download current patchsets") - return - } - notdone := new(forgepb.Patches) + /* + if me.psets == nil { + log.Info("failed to download current patchsets") + return + } + notdone := new(forgepb.Patches) - all := me.psets.All() - for all.Scan() { - pset := all.Next() - AddNotDonePatches(notdone, pset, false) - } + all := me.psets.All() + for all.Scan() { + pset := all.Next() + AddNotDonePatches(notdone, pset, false) + } - for patch := range notdone.IterAll() { - comment := cleanSubject(patch.Comment) - log.Info("new patch:", patch.NewHash, "commithash:", patch.CommitHash, patch.Namespace, comment) - } - // savePatchsets() - patchesWin = makePatchesWin(notdone) + for patch := range notdone.IterAll() { + comment := cleanSubject(patch.Comment) + log.Info("new patch:", patch.NewHash, "commithash:", patch.CommitHash, patch.Namespace, comment) + } + // savePatchsets() + patchesWin = makePatchesWin(notdone) + */ }) var pubWin *gadgets.GenericWindow @@ -407,27 +408,6 @@ func makeOldStuff() *gadgets.GenericWindow { grid := oldWin.Group.RawGrid() - var releaseWin *gadgets.GenericWindow - grid.NewButton("Release Window", func() { - log.Info("todo: move releaser here") - log.Info("for now, run guireleaser") - if releaseWin != nil { - releaseWin.Toggle() - return - } - releaseWin = makeModeMasterWin() - }) - - var patches *stdPatchsetTableWin - grid.NewButton("Patch Window", func() { - if patches != nil { - patches.Toggle() - return - } - patches = makePatchsetsWin() - }) - grid.NextRow() - // var reposWin *gadgets.GenericWindow var reposWin *stdReposTableWin grid.NewButton("Fix Repos", func() { |
