Skip to content

Commit

Permalink
Wait animation for entries refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
aQaTL committed May 25, 2018
1 parent 056f921 commit 26e5932
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 26e5932

Please sign in to comment.