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 --- structs.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'structs.go') 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 -- cgit v1.2.3