aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-09-20 14:52:21 +0200
committerRobin Jarry <robin@jarry.cc>2022-09-20 21:05:15 +0200
commit044519e1dc270bdde5dcdba5611a7a4a93441204 (patch)
tree1dce05277d6d8920e0fe2dec5e828110b8695d99
parentbb9ac43e13a96dc5bc501f60c3afb3718fe8085d (diff)
downloadaerc-044519e1dc270bdde5dcdba5611a7a4a93441204.tar.gz
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>
-rw-r--r--commands/compose/switch.go6
1 files changed, 5 insertions, 1 deletions
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
}