summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-11 20:24:40 -0600
committerJeff Carr <[email protected]>2024-02-11 20:24:40 -0600
commit08436e1a8dbd9d4166d43fef63d5c956a6e7b850 (patch)
treefcd078e8ef62c8c1934ef8815abbd62b325df8a9 /main.go
parentf7e67a8bf679fb308a2adf14de36a8cab2cb6b8b (diff)
move repowindow vars into main struct
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go18
1 files changed, 7 insertions, 11 deletions
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)
-
-}