diff options
author | Jeffas <dev@jeffas.io> | 2020-02-29 02:50:11 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-02-28 22:06:01 -0500 |
commit | b55813f2c0e96e0350473d96dc2dd82f0544ea8f (patch) | |
tree | 574d898f3912bf577ed41ca28445fa390a56d5e2 /widgets/msglist.go | |
parent | 2a0430ab90bdcb03d3f3243945280f29642faab0 (diff) | |
download | aerc-b55813f2c0e96e0350473d96dc2dd82f0544ea8f.tar.gz |
Don't show empty message while sorting
This changes the ui to show the spinner while we are sorting. It only
shows one line of the spinner since there are an unknown number of
messages at this time.
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r-- | widgets/msglist.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go index 51c133c0..59abf590 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -63,6 +63,12 @@ func (ml *MessageList) Draw(ctx *ui.Context) { } } + if store.Sorting { + ml.spinner.Start() + ml.spinner.Draw(ctx) + return + } + var ( needsHeaders []uint32 row int = 0 |