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,6 +202,7 @@ func drawWindow(win *gadgets.GenericWindow) {
patches = makePatchsetsWin() patches = makePatchsetsWin()
}) })
/*
// the user mode "hack Window" // the user mode "hack Window"
var hackWin *gadgets.GenericWindow var hackWin *gadgets.GenericWindow
gridM.NewButton("Hack Window", func() { gridM.NewButton("Hack Window", func() {
@ -211,6 +212,7 @@ func drawWindow(win *gadgets.GenericWindow) {
} }
hackWin = makeHackModeWindow() hackWin = makeHackModeWindow()
}) })
*/
var reposWin *gadgets.GenericWindow var reposWin *gadgets.GenericWindow
me.reposWinB = gridM.NewButton("Repos", func() { me.reposWinB = gridM.NewButton("Repos", func() {

View File

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

View File

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