diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2023-04-16 09:53:46 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-04-22 22:40:12 +0200 |
commit | d8c2d63ee9b37e78d0e06ec71b2227b83ee52aa5 (patch) | |
tree | ea71295539f16c1f696dcb2edbca1475d93298a8 /widgets/status.go | |
parent | 669431702f46eb58f893cbe722040de3792f6b03 (diff) | |
download | aerc-d8c2d63ee9b37e78d0e06ec71b2227b83ee52aa5.tar.gz |
directory: add role to template fields
Add .Role as a template field for use in distinguishing between
mailboxes with a given IANA role, or custom role defined by aerc
("query" for notmuch queries, for example).
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry<robin@jarry.cc>
Diffstat (limited to 'widgets/status.go')
-rw-r--r-- | widgets/status.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/status.go b/widgets/status.go index 209348c5..9f2544c7 100644 --- a/widgets/status.go +++ b/widgets/status.go @@ -53,7 +53,7 @@ func (status *StatusLine) Draw(ctx *ui.Context) { data.SetPendingKeys(status.aerc.pendingKeys) data.SetState(&status.acct.state) data.SetAccount(status.acct.acct) - data.SetFolder(status.acct.Directories().Selected()) + data.SetFolder(status.acct.Directories().SelectedDirectory()) msg, _ := status.acct.SelectedMessage() data.SetInfo(msg, 0, false) table := ui.NewTable( |