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:
parent
bb9ac43e13
commit
044519e1dc
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue