From dfc28a04d637d9af6eef8bde9b65952b99b15465 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 17 Feb 2024 08:38:44 -0600 Subject: refactor to use repolist package --- structs.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index d6fd2d1..57aa8de 100644 --- a/structs.go +++ b/structs.go @@ -3,7 +3,7 @@ package main import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" - "go.wit.com/lib/gui/repostatus" + "go.wit.com/lib/gui/repolist" ) var me *autoType @@ -18,20 +18,19 @@ func (b *autoType) Enable() { // this app's variables type autoType struct { - allrepos map[string]*repo - myGui *gui.Node + // allrepos map[string]*repo + myGui *gui.Node autotypistWindow *gui.Node + // the main box. enable/disable this mainbox *gui.Node // the window from the /lib/gui/gowit package lw *gadgets.BasicWindow - reposwin *gadgets.BasicWindow - reposbox *gui.Node - reposgrid *gui.Node - reposgroup *gui.Node + // our view of the repositories + repoView *repolist.RepoList // #### autotypist Global Display Options autoHidePerfect *gui.Node @@ -88,6 +87,7 @@ type autoType struct { setBranchB *gui.Node } +/* type repo struct { hidden bool lasttagrev string @@ -111,3 +111,4 @@ type repo struct { status *repostatus.RepoStatus } +*/ -- cgit v1.2.3