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
}
func (c Context) GoRet(pth Widget) WidgetGo {
return WidgetGo{
func (c Context) GoRet(pth Widget) UI {
return UI{WidgetGo{
Path: pth,
Arg: c.Arg(),
}
}}
}
// Go to the specified widget