From 08436e1a8dbd9d4166d43fef63d5c956a6e7b850 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 11 Feb 2024 20:24:40 -0600 Subject: move repowindow vars into main struct Signed-off-by: Jeff Carr --- main.go | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index a585bc7..1692a0f 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,13 @@ func main() { // me.myGui.LoadToolkit("nocui") me.myGui.Default() - autotypistWindow() + me.autotypistWindow = me.myGui.NewWindow("autotypist for GO & git. it types faster than you can.") + box := me.autotypistWindow.NewBox("bw hbox", true) + + globalDisplayOptions(box) + globalBuildOptions(box) + globalResetOptions(box) + repolistWindow() // process everything on the command line @@ -69,13 +75,3 @@ func main() { */ }) } - -func autotypistWindow() { - me.autotypistWindow = me.myGui.NewWindow("autotypist for GO & git. it types faster than you can.") - box := me.autotypistWindow.NewBox("bw hbox", true) - - globalDisplayOptions(box) - globalBuildOptions(box) - globalResetOptions(box) - -} -- cgit v1.2.3