dont do raw.New, instead add raw.Raw.Refresh explicit

This commit is contained in:
bel
2023-03-25 10:17:36 -06:00
parent de261ae400
commit 2cae3c6d28
6 changed files with 14 additions and 1 deletions

View File

@@ -13,8 +13,9 @@ type Input interface {
}
func New(ctx context.Context) Input {
src := raw.New(ctx)
return wrap.New(ctx, func() button.Parser {
src := raw.New(ctx)
src.Refresh()
return button.New(ctx, src)
})
}