diff options
| author | Jeff Carr <[email protected]> | 2025-03-23 09:30:34 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-23 09:30:34 -0500 |
| commit | aed4c927130f5bc52f062dff40f3b48500b14081 (patch) | |
| tree | 4ff90165ec4ab679cde5bb8e6a96ada60ed7940d /doGui.go | |
| parent | edc362f4b981ed466c8d9038c42e9bda8a5dbe41 (diff) | |
window with only unapplied patchesv0.22.112
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 40 |
1 files changed, 27 insertions, 13 deletions
@@ -193,19 +193,6 @@ func drawWindow(win *gadgets.GenericWindow) { releaseWin = makeModeMasterWin() }) - /* - // the Devel / Patch mode window - var patchWin *patchesWindow - gridM.NewButton("Patch Window", func() { - if patchWin != nil { - patchWin.Toggle() - return - } - patchWin = new(patchesWindow) - patchWin.initWindow() - patchWin.Show() - }) - */ var patches *stdPatchsetTableWin gridM.NewButton("Patch Window", func() { if patches != nil { @@ -234,6 +221,33 @@ func drawWindow(win *gadgets.GenericWindow) { reposWin = makeReposWin() }) + var patchesWin *stdPatchTableWin + gridM.NewButton("Pending patches", func() { + if patchesWin != nil { + patchesWin.Toggle() + return + } + loadUpstreamPatchsets() + 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) + } + + for patch := range notdone.IterAll() { + comment := cleanSubject(patch.Comment) + log.Info("new patch:", patch.NewHash, "commithash:", patch.CommitHash, patch.RepoNamespace, comment) + } + // savePatchsets() + patchesWin = makePatchesWin(notdone) + }) + // set the initial button state based on the last // forge mode the user saved in the config file switch me.forge.Config.Mode { |
