summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-05 02:58:31 -0600
committerJeff Carr <[email protected]>2025-03-05 02:58:31 -0600
commit7367335143fd8a3970fc0132d5c44fe8be730876 (patch)
tree9b02341b8ff25f2616fee6568764047d5af130f9
parentf01423a1513f0d4ef685d4992ee6bc1ad1f980d5 (diff)
work on delete and full protobuf gui
-rw-r--r--windowRepos.go34
1 files changed, 22 insertions, 12 deletions
diff --git a/windowRepos.go b/windowRepos.go
index 3804b18..4a8913f 100644
--- a/windowRepos.go
+++ b/windowRepos.go
@@ -95,20 +95,21 @@ func makeReposWin() *gadgets.GenericWindow {
log.Info("test delete window here")
}
grid := insertWin.Group.RawGrid()
- 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)
-
- }
var t *gitpb.ReposTable
grid.NewButton("insert table", func() {
+ 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)
+
+ }
+
// make the window for the first time
t = addWindowPB(insertWin, found)
log.Info("table has uuid", t.GetUuid())
@@ -116,6 +117,15 @@ func makeReposWin() *gadgets.GenericWindow {
grid.NewButton("attempt to delete table", func() {
t.Delete()
+ t = nil
+ })
+
+ grid.NewButton("insert dirty table", func() {
+ found := findDirty()
+
+ // make the window for the first time
+ t = addWindowPB(insertWin, found)
+ log.Info("table has uuid", t.GetUuid())
})
})
@@ -360,7 +370,7 @@ func makeWindowForPB() *gadgets.GenericWindow {
func addWindowPB(win *gadgets.GenericWindow, pb *gitpb.Repos) *gitpb.ReposTable {
t := pb.NewTable("testForgeRepos")
t.NewUuid()
- tbox := win.Bottom.Box()
+ tbox := win.Bottom.Box().SetProgName("TBOX")
t.SetParent(tbox)
sf := t.AddStringFunc("repo", func(r *gitpb.Repo) string {