fix: fixed the return value for GoRet.

This commit is contained in:
Andrey Parhomenko 2024-07-23 17:47:24 +05:00
parent 66c70d5b31
commit 8b76e52e6f

View file

@ -298,11 +298,11 @@ func (c Context) RunWidget(widget Widget) (*UpdateChan, error) {
return ret, nil return ret, nil
} }
func (c Context) GoRet(pth Widget) WidgetGo { func (c Context) GoRet(pth Widget) UI {
return WidgetGo{ return UI{WidgetGo{
Path: pth, Path: pth,
Arg: c.Arg(), Arg: c.Arg(),
} }}
} }
// Go to the specified widget // Go to the specified widget