fix: fixed the return value for GoRet.
This commit is contained in:
parent
66c70d5b31
commit
8b76e52e6f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue