summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 06:02:35 -0500
committerJeff Carr <[email protected]>2025-09-09 06:02:35 -0500
commit18422bacebb2a99728abfcc1a1ee25cef42d2311 (patch)
tree082b96019fd46a6b4139491ee52f8ba702535fc8 /main.go
parent1418fcb0d148754fd762c9c8718b362eeb5a95de (diff)
new GUI codebasev0.22.127
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/main.go b/main.go
index 0b44c7d..9d9c016 100644
--- a/main.go
+++ b/main.go
@@ -7,6 +7,7 @@ import (
"go.wit.com/gui"
"go.wit.com/lib/fhelp"
+ "go.wit.com/lib/gui/prep"
"go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
@@ -53,12 +54,7 @@ func main() {
}
// build()
- me.myGui = gui.New()
- if !argv.Auto {
- me.myGui.InitEmbed(resources)
- }
- me.myGui.Default()
-
+ me.myGui = prep.Gui() // prepares the GUI package for go-args
me.basicWindow = makebasicWindow()
// figure out where we are working from
@@ -98,6 +94,8 @@ func main() {
os.Exit(0)
}
+ // only load teh toolkit if you get this far
+ me.myGui.Start() // loads the GUI toolkit
me.basicWindow.Show()
// go will sit here until the window exits
gui.Watchdog()