summaryrefslogtreecommitdiff
path: root/commands/account
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-03-24 23:12:16 +0100
committerRobin Jarry <robin@jarry.cc>2022-03-25 13:07:25 +0100
commitfc604b667939bfe52ab8758a9a369e2c63de4dbc (patch)
tree06f9d7326f8392200868ec91a166523365f57907 /commands/account
parent20218de913d871390a97aa3b86a03d5d06af50d6 (diff)
downloadaerc-fc604b667939bfe52ab8758a9a369e2c63de4dbc.zip
statusline: indicate when sorting is in progress
Indicate when sorting is in progress in the statusline. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
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 c08991c..a35ff33 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
}