diff --git a/globalBuildOptions.go b/globalBuildOptions.go index b8bf594..9e03d75 100644 --- a/globalBuildOptions.go +++ b/globalBuildOptions.go @@ -118,4 +118,27 @@ func globalBuildOptions(box *gui.Node) { repo.newScan() } }) + + groupvbox.NewButton("hide perfect", func () { + for _, repo := range allrepos { + if repo.dirtyLabel.GetText() == "PERFECT" { + repo.hide() + } + return + } + }) +} + +func (r *repo) hide() { + r.pLabel.Hide() + r.lastTag.Hide() + r.vLabel.Hide() + + r.masterName.Hide() + r.masterVersion.Hide() + r.develName.Hide() + r.develVersion.Hide() + r.userName.Hide() + r.userVersion.Hide() + r.dirtyLabel.Hide() }