From fcd132c109ed4f1ecf4348a6fdc85092973fbb97 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 13 Nov 2024 17:23:33 -0600 Subject: code cleanup --- hideFunction.go | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'hideFunction.go') diff --git a/hideFunction.go b/hideFunction.go index 2feac4d..fcbbacf 100644 --- a/hideFunction.go +++ b/hideFunction.go @@ -4,15 +4,16 @@ import ( "os" "go.wit.com/lib/gui/repolist" - "go.wit.com/log" ) // like tcl/tk, use ENV variables to set display preferences func hideFunction(r *repolist.RepoRow) { - if r.GoPath() == "go.wit.com/dev/alexflint/arg" { - log.Info("found autoHideReleased() =", me.autoHideReleased.Checked()) - log.Info("found alexflint/arg IsReleased() =", r.Status.IsReleased()) - } + /* + if r.GoPath() == "go.wit.com/dev/alexflint/arg" { + log.Info("found autoHideReleased() =", me.autoHideReleased.Checked()) + log.Info("found alexflint/arg IsReleased() =", r.Status.IsReleased()) + } + */ // always show dirty repos if r.Status.IsDirty() { @@ -47,12 +48,14 @@ func hideFunction(r *repolist.RepoRow) { } } - if me.autoHideReleased.Checked() { - if r.Status.IsReleased() { - r.Hide() - return + /* + if me.autoHideReleased.Checked() { + if r.Status.IsReleased() { + r.Hide() + return + } } - } + */ // show everything else. often this will be "unconforming" repos // if you what those repos ignored, add these to the config file -- cgit v1.2.3