aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account')
-rw-r--r--commands/account/sort.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/account/sort.go b/commands/account/sort.go
index c08991c8..a35ff333 100644
--- a/commands/account/sort.go
+++ b/commands/account/sort.go
@@ -6,6 +6,7 @@ import (
"git.sr.ht/~rjarry/aerc/commands"
"git.sr.ht/~rjarry/aerc/lib/sort"
+ "git.sr.ht/~rjarry/aerc/lib/statusline"
"git.sr.ht/~rjarry/aerc/widgets"
"git.sr.ht/~rjarry/aerc/worker/types"
)
@@ -82,9 +83,9 @@ func (Sort) Execute(aerc *widgets.Aerc, args []string) error {
}
}
- aerc.SetStatus("Sorting")
+ acct.SetStatus(statusline.Sorting(true))
store.Sort(sortCriteria, func() {
- aerc.SetStatus("Sorting complete")
+ acct.SetStatus(statusline.Sorting(false))
})
return nil
}