From 6a34c69970cc98c76ee5f94428047d6a2e11c353 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 16 Jan 2024 11:56:55 -0600 Subject: global window opens and closes repo window Signed-off-by: Jeff Carr --- main.go | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 429230b..4115f17 100644 --- a/main.go +++ b/main.go @@ -20,6 +20,7 @@ func main() { myGui.InitEmbed(resToolkit) myGui.Default() + autotypistWindow() repoworld() log.Sleep(.3) hidePerfect() @@ -72,11 +73,24 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri allrepos = append(allrepos, newRepo) } +func autotypistWindow() { + me.autotypistWindow = gadgets.NewBasicWindow(myGui, "autotypist for GO & git. it types faster than you can.") + me.autotypistWindow.Make() + me.autotypistWindow.StandardExit() + + box := me.autotypistWindow.Box() + globalDisplayOptions(box) + globalBuildOptions(box) + globalResetOptions(box) + me.autotypistWindow.Draw() + +} + // This creates a window func repoworld() { reposwin = gadgets.NewBasicWindow(myGui, "autotypist for GO & git. it types faster than you can.") reposwin.Make() - reposwin.StandardExit() + // reposwin.StandardExit() reposbox = reposwin.Box().NewBox("bw vbox", false) reposgroup = reposbox.NewGroup("go repositories (read from ~/.config/myrepolist)") @@ -105,11 +119,13 @@ func repoworld() { addRepo(reposgrid, path, mbranch, dbranch, ubranch) } + /* box2 := reposwin.Box().NewBox("bw vbox", false) globalDisplayOptions(box2) globalBuildOptions(box2) globalResetOptions(box2) + */ - reposwin.Draw() + // reposwin.Draw() } -- cgit v1.2.3