merge this into a single window

This commit is contained in:
Jeff Carr 2025-04-24 19:28:04 -05:00
parent ef6da4aa17
commit cc8800bf60
3 changed files with 15 additions and 13 deletions

View File

@ -202,15 +202,17 @@ func drawWindow(win *gadgets.GenericWindow) {
patches = makePatchsetsWin()
})
// the user mode "hack Window"
var hackWin *gadgets.GenericWindow
gridM.NewButton("Hack Window", func() {
if hackWin != nil {
hackWin.Toggle()
return
}
hackWin = makeHackModeWindow()
})
/*
// the user mode "hack Window"
var hackWin *gadgets.GenericWindow
gridM.NewButton("Hack Window", func() {
if hackWin != nil {
hackWin.Toggle()
return
}
hackWin = makeHackModeWindow()
})
*/
var reposWin *gadgets.GenericWindow
me.reposWinB = gridM.NewButton("Repos", func() {

View File

@ -11,9 +11,9 @@ import (
"go.wit.com/log"
)
func makeHackModeWindow() *gadgets.GenericWindow {
win := gadgets.NewGenericWindow("git user branch / Hack Mode Window", "This is a work in progress")
grid := win.Group.RawGrid()
func makeHackModeWindow(win *gadgets.GenericWindow) {
group := win.Stack.NewGroup("This is a work in progress")
grid := group.RawGrid()
grid.NewButton("git pull", func() {
log.Info("todo: run git pull on each repo")
})
@ -111,5 +111,4 @@ func makeHackModeWindow() *gadgets.GenericWindow {
grid.NewButton("debugger()", func() {
debugger.DebugWindow()
})
return win
}

View File

@ -268,6 +268,7 @@ func makeReposWin() *gadgets.GenericWindow {
})
grid.NextRow()
makeHackModeWindow(win)
return win
}