From 022072ce8bac114ea0a7b94132ed3b8630de2f90 Mon Sep 17 00:00:00 2001 From: ewy Date: Fri, 17 Apr 2026 00:00:40 +0200 Subject: * fix bug which prevented multiple sources from showing up in the tui at the same time * add padding to bottom of sources * add git status panel to bottom of tui --- menu/menu.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'menu/menu.go') diff --git a/menu/menu.go b/menu/menu.go index 7f71e2d..97b4078 100644 --- a/menu/menu.go +++ b/menu/menu.go @@ -10,7 +10,7 @@ import ( var WrongModelTypeError = errors.New("wrong model type") var NoSourcesIndexedError = errors.New("no sources indexed") -func Show(st *model.State, hydrators []model.Hydrator) (*model.HydratedSource, model.HydratedTarget, error) { +func Show(st *model.State, hydrators []model.Modder) (*model.HydratedSource, model.HydratedTarget, error) { if len(st.Sources) == 0 { return nil, nil, NoSourcesIndexedError } @@ -29,7 +29,7 @@ func Show(st *model.State, hydrators []model.Hydrator) (*model.HydratedSource, m return src, t, nil } -func Hydrate(st *model.State, hydrators []model.Hydrator) *model.HydratedState { +func Hydrate(st *model.State, hydrators []model.Modder) *model.HydratedState { hyd := &model.HydratedState{ State: st, HydratedSources: make([]*model.HydratedSource, len(st.Sources)), @@ -38,7 +38,7 @@ func Hydrate(st *model.State, hydrators []model.Hydrator) *model.HydratedState { hydSrc := s.Hydrate(hydrators) for _, h := range hydrators { - err := h.Hydrate(s, hydSrc) + err := h.Mod(s, hydSrc) if err != nil { spool.Warn("%v\n", err) continue -- cgit v1.3