diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index fe37833..56a3d8c 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -47,11 +47,14 @@ func globalDisplayOptions(vbox *gui.Node) { me.autoScanReposCB.Custom = func() { if me.autoScanReposCB.Checked() { os.Setenv("REPO_AUTO_SCAN", "true") + log.Info("env REPO_AUTO_SCAN=", os.Getenv("REPO_AUTO_SCAN")) } else { os.Unsetenv("REPO_AUTO_SCAN") + log.Info("env REPO_AUTO_SCAN=", os.Getenv("REPO_AUTO_SCAN")) } } os.Setenv("REPO_AUTO_SCAN", "true") + scanbox.NewButton("scan now", func() { log.Info("re-scanning repos now") i, s := me.repos.View.ScanRepositories() diff --git a/hideFunction.go b/hideFunction.go index c9dddcb..569988c 100644 --- a/hideFunction.go +++ b/hideFunction.go @@ -4,7 +4,6 @@ import ( "os" "go.wit.com/lib/gui/repolist" - "go.wit.com/log" ) // like tcl/tk, use ENV variables to set display preferences @@ -18,11 +17,11 @@ func hideFunction(r *repolist.RepoRow) { // hide read-only repos if os.Getenv("AUTOTYPIST_READONLY") == "hide" { if r.Status.ReadOnly() { - log.Info(r.Name(), "hiding read-only repo") + // log.Info(r.Name(), "hiding read-only repo") r.Hide() return } else { - log.Info(r.Name(), "not hiding read-only repo") + // log.Info(r.Name(), "not hiding read-only repo") } }