From 8f514d426877373be4dd98404b49b4d228f46407 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 14 Feb 2025 00:09:37 -0600 Subject: fix changes related to plugin updates --- main.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 9fd672d..4510363 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,7 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" "go.wit.com/lib/fhelp" + "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" @@ -65,14 +66,17 @@ func main() { me.myGui.Default() // our main window - me.mainWindow = me.myGui.NewWindow("GUI release manager " + VERSION) + me.mainWindow = gadgets.RawBasicWindow("GUI release manager " + VERSION) me.mainWindow.Custom = func() { log.Warn("Window closed. forge configsave") // sets the hidden flag to false so Toggle() works me.forge.ConfigSave() okExit("") } - me.mainBox = me.mainWindow.NewBox("bw hbox", true) + me.mainWindow.Make() + me.mainWindow.Show() + + me.mainBox = me.mainWindow.Box() // sanity check of things that might be around that mess // up things later @@ -88,7 +92,7 @@ func main() { // initialize the repo list window // which should be all the git repositories in ~/go/src & the .config file - me.repos = makeRepoView() + // me.repos = makeRepoView() // the left side of the window options globalDisplayOptions(me.mainBox) @@ -102,7 +106,7 @@ func main() { // scan in the State of all the repos // TODO: should not really be necessary directly after init() - me.repos.View.ScanRepositoriesOld() + // me.repos.View.ScanRepositoriesOld() // todo: add this to forgepb me.startRepo = me.forge.FindWorkingDirRepo() -- cgit v1.2.3