aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 59abf590..7c1a03b9 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -63,12 +63,6 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
}
}
- if store.Sorting {
- ml.spinner.Start()
- ml.spinner.Draw(ctx)
- return
- }
-
var (
needsHeaders []uint32
row int = 0
@@ -134,7 +128,13 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
}
if len(uids) == 0 {
- ml.drawEmptyMessage(ctx)
+ if store.Sorting {
+ ml.spinner.Start()
+ ml.spinner.Draw(ctx)
+ return
+ } else {
+ ml.drawEmptyMessage(ctx)
+ }
}
if len(needsHeaders) != 0 {