attempt to stub in table Update()
This commit is contained in:
parent
0eb355cb12
commit
99f80ecddb
13
doGui.go
13
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
|
||||
|
|
Loading…
Reference in New Issue