summaryrefslogtreecommitdiff
path: root/windowRepos.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-04 20:29:23 -0600
committerJeff Carr <[email protected]>2025-03-04 20:29:23 -0600
commit0529b0dca08efddf0591ebf3a1bf11a303f10277 (patch)
treec8dc2316d0cb230fb0e5245b64b024a8c72bd7d9 /windowRepos.go
parentaa229b8778d3e17fb7551d33772cc82da7cde6c0 (diff)
docs
Diffstat (limited to 'windowRepos.go')
-rw-r--r--windowRepos.go31
1 files changed, 16 insertions, 15 deletions
diff --git a/windowRepos.go b/windowRepos.go
index 2e76a24..5d619d5 100644
--- a/windowRepos.go
+++ b/windowRepos.go
@@ -95,25 +95,26 @@ func makeReposWin() *gadgets.GenericWindow {
log.Info("test delete window here")
}
grid := insertWin.Group.RawGrid()
- grid.NewButton("do something", func() {
- log.Info("do something on each pb row")
- })
- grid.NewButton("attempt to insert table", func() {
- // make the window for the first time
- found := new(gitpb.Repos)
- all := me.forge.Repos.SortByFullPath()
- for all.Scan() {
- repo := all.Next()
- if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
- continue
- }
+ var t *gitpb.ReposTable
+ found := new(gitpb.Repos)
+ all := me.forge.Repos.SortByFullPath()
+ for all.Scan() {
+ repo := all.Next()
+ if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
+ continue
+ }
- found.AppendByGoPath(repo)
+ found.AppendByGoPath(repo)
- }
- t := addWindowPB(insertWin, found)
+ }
+ grid.NewButton("insert table", func() {
+ // make the window for the first time
+ t = addWindowPB(insertWin, found)
log.Info("table has uuid", t.GetUuid())
})
+ grid.NewButton("attempt to delete table", func() {
+ t.Delete()
+ })
})
grid.NewButton("Configure", func() {