summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-20 06:53:07 -0600
committerJeff Carr <[email protected]>2024-02-20 06:53:07 -0600
commita5cd066cd24e68f5149452ea2f600ce1d4956198 (patch)
tree60e921e824ceb0367e410c348c2a1b32eb6f08a9 /main.go
parent28f5e1535036b9490df7cce63759bb39774f73c7 (diff)
rewriting logic to repolist
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.go b/main.go
index 5464360..3a7d1fe 100644
--- a/main.go
+++ b/main.go
@@ -32,6 +32,11 @@ func main() {
os.Exit(0)
}
+ // unset the go development ENV var to generate release files
+ // this is required for go mod init & tidy. Also, if the
+ // user drops to a shell or xterm, then they shouldn't be set there either
+ os.Unsetenv("GO111MODULE")
+
me.myGui = gui.New()
me.myGui.InitEmbed(resToolkit)
me.myGui.Default()
@@ -72,6 +77,9 @@ func main() {
// hopefully this is the list of all the golang packages and only the GUI golang packages
me.repos = makeRepoView()
+ // register a Show/Hide function for the repo list table
+ me.repos.View.RegisterHideFunction(showHideRepos)
+
// create the right side of the main window
createReleaseBox(me.mainBox)
@@ -88,7 +96,7 @@ func main() {
// reads in the State of all the repos
// TODO: should not really be necessary directly after init()
- me.repos.View.ScanRepositories()
+ // me.repos.View.ScanRepositories()
me.Enable()