lots more gui cleanup

This commit is contained in:
Jeff Carr 2025-01-30 07:30:04 -06:00
parent 76eb230ae8
commit c815c8b403
1 changed files with 10 additions and 13 deletions

View File

@ -33,10 +33,10 @@ func doGui() {
me.myGui.SetAppDefaultPlugin(me.forge.Config.DefaultGui) // sets the default GUI plugin to use
me.myGui.Default()
me.mainWindow = gadgets.RawBasicWindow("Forge: (this kinda works sometimes)")
me.mainWindow.Make()
me.mainWindow.Show()
me.mainWindow.Custom = func() {
mainWindow := gadgets.RawBasicWindow("Forge: (this kinda works sometimes)")
mainWindow.Make()
mainWindow.Show()
mainWindow.Custom = func() {
log.Warn("MAIN WINDOW CLOSE")
count := me.forge.RillReload()
log.Info("Repo Reload count =", count)
@ -46,21 +46,18 @@ func doGui() {
os.Exit(0)
}
me.mainbox = me.mainWindow.Box()
drawWindow(mainWindow)
// disable the interface while everything is scanned
me.Disable()
vbox2 := me.mainbox.NewVerticalBox("BOX2")
globalBuildOptions(vbox2)
me.Enable()
// sits here forever
debug()
}
func globalBuildOptions(vbox *gui.Node) {
func drawWindow(win *gadgets.BasicWindow) {
box := win.Box()
vbox := box.NewVerticalBox("BOX2")
group1 := vbox.NewGroup("Forge Settings")
grid := group1.NewGrid("buildOptions", 0, 0)