diff options
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go index a854fb6e..31384a5f 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -200,6 +200,10 @@ func (acct *AccountView) SelectedAccount() *AccountView { return acct } +func (acct *AccountView) SelectedDirectory() string { + return acct.dirlist.Selected() +} + func (acct *AccountView) SelectedMessage() (*models.MessageInfo, error) { if len(acct.msglist.Store().Uids()) == 0 { return nil, errors.New("no message selected") |