From 044519e1dc270bdde5dcdba5611a7a4a93441204 Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Tue, 20 Sep 2022 14:52:21 +0200 Subject: 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 Signed-off-by: Koni Marti Acked-by: Robin Jarry --- commands/compose/switch.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/compose/switch.go b/commands/compose/switch.go index 58702b5b..2b6aadb5 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 } -- cgit