diff --git a/commands/compose/switch.go b/commands/compose/switch.go index 58702b5..2b6aadb 100644 --- a/commands/compose/switch.go +++ b/commands/compose/switch.go @@ -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 }