From 26e5932cab17fffed7e0b39ac158bf4d0a583bf7 Mon Sep 17 00:00:00 2001 From: aQaTL Date: Fri, 25 May 2018 18:06:52 +0200 Subject: [PATCH] Wait animation for entries refreshing --- cache.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cache.go b/cache.go index 451159b..02ec21a 100644 --- a/cache.go +++ b/cache.go @@ -62,7 +62,9 @@ func loadData(c *mal.Client, ctx *cli.Context) mal.AnimeList { var list []*mal.Anime if ctx.GlobalBool("refresh") || cacheNotExist() { - list = c.AnimeList(mal.All) + mal.DoFuncWithWaitAnimation("Fetching your list", func() { + list = c.AnimeList(mal.All) + }) cacheList(list) cacheClient(c)