summaryrefslogtreecommitdiff
path: root/structs.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 /structs.go
parentf7e67a8bf679fb308a2adf14de36a8cab2cb6b8b (diff)
move repowindow vars into main struct
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/structs.go b/structs.go
index 0a649ff..2b262dd 100644
--- a/structs.go
+++ b/structs.go
@@ -1,4 +1,3 @@
-// watch all your go git repos
package main
import (
@@ -7,20 +6,20 @@ import (
"go.wit.com/lib/gui/repostatus"
)
-// the main window nodes
-var reposwin *gadgets.BasicWindow
-var reposbox *gui.Node
-var reposgrid *gui.Node
-var reposgroup *gui.Node
-
var me *autoType
+// this app's variables
type autoType struct {
allrepos map[string]*repo
myGui *gui.Node
autotypistWindow *gui.Node
+ reposwin *gadgets.BasicWindow
+ reposbox *gui.Node
+ reposgrid *gui.Node
+ reposgroup *gui.Node
+
// #### autotypist Global Display Options
autoHidePerfect *gui.Node
autoHideReadOnly *gui.Node