Only show spinner while sorting if no uids
This fixes the problem where we already have messages and then have to sort again.
This commit is contained in:
parent
b55813f2c0
commit
e661ead57b
1 changed files with 7 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue