summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 11:59:21 -0600
committerJeff Carr <[email protected]>2025-03-03 11:59:21 -0600
commit99f80ecddbf3522c0afab7a2094a627f9c3f8cba (patch)
tree7cbc3499986a7d1a8d64b23718e9c89e9d901c24 /doGui.go
parent0eb355cb127e35cacfb4a72e31105e0c59643a52 (diff)
attempt to stub in table Update()
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/doGui.go b/doGui.go
index fe7f3b0..1dbe937 100644
--- a/doGui.go
+++ b/doGui.go
@@ -339,7 +339,7 @@ func drawWindow(win *gadgets.BasicWindow) {
me.repoDirtyB = grid.NewButton("dirty", func() {
doCheckDirtyAndConfigSave()
found := findDirty()
- _, box := makeStandardReposWindow("dirty repos", found)
+ tb, box := makeStandardReposWindow("dirty repos", found)
hbox := box.Box().Horizontal()
hbox.NewButton("commit all", func() {
all := found.SortByFullPath()
@@ -350,7 +350,16 @@ func drawWindow(win *gadgets.BasicWindow) {
log.Info("TODO: fix this")
log.Info("run 'forge commit --all'")
})
-
+ hbox.NewButton("update table", func() {
+ me.forge.PrintHumanTable(found)
+ found2 := findDirty()
+ me.forge.PrintHumanTable(found2)
+ tb.Update()
+ tb.UpdateTable(found2)
+ })
+ hbox.NewButton("delete table", func() {
+ tb.Delete()
+ })
})
var writeWin *GenericWindow