// Safe to call from another goroutine
Safe to call from another goroutine
// Safe to call from another goroutine
func (sc *searchCui) reload() {
	results, err := anilist.Search(sc.SearchQuery, 1, 50, anilist.Anime, sc.Al.Token)
	if err != nil {
		dialog.JustShowOkDialog(sc.Gui, "Error",
			strings.TrimSpace(strings.Replace(err.Error(), "\n", " ", -1)))
	}
	sc.Gui.Update(func(gui *gocui.Gui) error {
		sc.Results = results
		sc.Gui.SetManager(sc)
		sc.setGuiKeyBindings(sc.Gui)
		return nil
	})
}
func ( sc * searchCui ) reload ( ) { results , err := anilist . Search ( sc . SearchQuery , 1 , 50 , anilist . Anime , sc . Al . Token ) if err != nil { dialog . JustShowOkDialog ( sc . Gui , " " , strings . TrimSpace ( strings . Replace ( err . Error ( ) , " \n " , " " , - 1 ) ) ) } sc . Gui . Update ( func ( gui * gocui . Gui ) error { sc . Results = results sc . Gui . SetManager ( sc ) sc . setGuiKeyBindings ( sc . Gui ) return nil } ) }
Safe to call from another goroutine
Safe to call from another goroutine