on refresh, recreate raw too, because i dont wanna be leaking by not Closing on refresh
This commit is contained in:
@@ -13,8 +13,8 @@ type Input interface {
|
||||
}
|
||||
|
||||
func New(ctx context.Context) Input {
|
||||
src := raw.New(ctx)
|
||||
return wrap.New(ctx, func() button.Parser {
|
||||
src := raw.New(ctx)
|
||||
return button.New(ctx, src)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user