switch: update status line

Update status line when switching accounts in the composer.

Fixes: 371c1a ("commands: add switch-account command for composer")
Reported-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Koni Marti 2022-09-20 14:52:21 +02:00 committed by Robin Jarry
parent bb9ac43e13
commit 044519e1dc
1 changed files with 5 additions and 1 deletions

View File

@ -70,6 +70,10 @@ func (SwitchAccount) Execute(aerc *widgets.Aerc, args []string) error {
if err != nil {
return err
}
if err = switcher.SwitchAccount(acct); err != nil {
return err
}
acct.UpdateStatus()
return switcher.SwitchAccount(acct)
return nil
}