diff options
Diffstat (limited to 'commands/account/sort.go')
-rw-r--r-- | commands/account/sort.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/account/sort.go b/commands/account/sort.go index a35ff33..e9ee4a3 100644 --- a/commands/account/sort.go +++ b/commands/account/sort.go @@ -84,8 +84,10 @@ func (Sort) Execute(aerc *widgets.Aerc, args []string) error { } acct.SetStatus(statusline.Sorting(true)) - store.Sort(sortCriteria, func() { - acct.SetStatus(statusline.Sorting(false)) + store.Sort(sortCriteria, func(msg types.WorkerMessage) { + if _, ok := msg.(*types.Done); ok { + acct.SetStatus(statusline.Sorting(false)) + } }) return nil } |