From 1339faf7881f33762c6e0a4915404e362fc51de1 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Wed, 2 Oct 2019 11:24:12 +0100 Subject: Show spinner when fetching contents The spinner should be shown when fetching the contents as we don't know at that point whether there are some messages or not. --- widgets/msglist.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/msglist.go') diff --git a/widgets/msglist.go b/widgets/msglist.go index 5c2d2f4..729b65f 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -61,6 +61,9 @@ func (ml *MessageList) Draw(ctx *ui.Context) { ml.drawEmptyMessage(ctx) return } + } else if store.FetchingContents { + ml.spinner.Draw(ctx) + return } var ( -- cgit v1.2.3