diff options
| author | Jeff Carr <[email protected]> | 2025-03-10 14:57:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-10 14:57:33 -0500 |
| commit | 391a988e5f638f5c4b33b78f1f0ac9df7e670518 (patch) | |
| tree | e826774ee14b1b165aa81bf116c90e80ccf9f0a5 /windowNewPatchsets.go | |
| parent | 18d9a7a099978174f81c016e90cdc9b6cd3162f2 (diff) | |
working on more standard patch windows
Diffstat (limited to 'windowNewPatchsets.go')
| -rw-r--r-- | windowNewPatchsets.go | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/windowNewPatchsets.go b/windowNewPatchsets.go index b8cc31d..2b8bb46 100644 --- a/windowNewPatchsets.go +++ b/windowNewPatchsets.go @@ -33,7 +33,7 @@ func (w *stdPatchsetTableWin) Toggle() { func makePatchsetsWin() *stdPatchsetTableWin { dwin := new(stdPatchsetTableWin) - dwin.win = gadgets.NewGenericWindow("forge current patchsets", "who is squirreling around?") + dwin.win = gadgets.NewGenericWindow("forge current patchsets", "patchset options") dwin.win.Custom = func() { log.Info("test delete window here") } @@ -88,8 +88,10 @@ func (dwin *stdPatchsetTableWin) doPatchsetsTable(currentPatchsets *forgepb.Patc dwin.TB = AddPatchsetsPB(dwin.box, currentPatchsets) f := func(pset *forgepb.Patchset) { log.Info("Triggered. do something here", pset.Name) - win := makePatchWindow(pset) - win.Show() + /* + win := makePatchWindow(pset) + win.Show() + */ } dwin.TB.Custom(f) } @@ -106,19 +108,22 @@ func AddPatchsetsPB(tbox *gui.Node, pb *forgepb.Patchsets) *forgepb.PatchsetsTab testf := func(p *forgepb.Patchset) string { return "test" } - tp := t.AddButtonFunc("Analyse", testf) + tp := t.AddButtonFunc("Analyze", testf) tp.Custom = func(p *forgepb.Patchset) { - log.Info("show patches here", p.Name) - patchwin := makePatchesWin() - patchwin.doPatchesTable(p.Patches) + log.Info("analyze patches here", p.Name) } vp := t.AddButtonFunc("View Patchset", func(p *forgepb.Patchset) string { return p.Name }) vp.Custom = func(pset *forgepb.Patchset) { - win := makePatchWindow(pset) - win.Show() + log.Info("show patches here", pset.Name) + patchwin := makePatchesWin() + patchwin.doPatchesTable(pset.Patches) + /* + win := makePatchWindow(pset) + win.Show() + */ } t.AddComment() |
