move things to gitpb

This commit is contained in:
Jeff Carr 2024-11-29 23:18:18 -06:00
parent 57cbde285b
commit eb72a685c4
2 changed files with 20 additions and 17 deletions

View File

@ -24,6 +24,10 @@ func (r *RepoList) Hide() {
r.reposbox.Hide() r.reposbox.Hide()
} }
func (r *RepoRow) IsProtobuf() (bool, []string, error) {
return r.pb.IsProtobuf()
}
// better name: use this // better name: use this
// matches by path or by name // matches by path or by name
func (r *RepoList) FindByName(name string) *RepoRow { func (r *RepoList) FindByName(name string) *RepoRow {

View File

@ -89,7 +89,6 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
newRepo.currentName = r.reposgrid.NewLabel("") newRepo.currentName = r.reposgrid.NewLabel("")
newRepo.currentVersion = r.reposgrid.NewLabel("") newRepo.currentVersion = r.reposgrid.NewLabel("")
newRepo.endBox = r.reposgrid.NewHorizontalBox("HBOX") newRepo.endBox = r.reposgrid.NewHorizontalBox("HBOX")
newRepo.endBox.NewButton("Configure", func() { newRepo.endBox.NewButton("Configure", func() {
newRepo.Status.Toggle() newRepo.Status.Toggle()