~rjarry/aerc

65db1c6513d655aec2ab1345fb68ba0349dfc79f — Tim Culverhouse 1 year, 2 months ago 4e666b1
split: remove previous split from grid

Remove the previous split from the account grid view. When adding a new
child at an existing location, the content is appended to a slice
instead of replacing any old values. The old content must be explicitly
removed.

Reported-by: inwit <inwit@sindominio.net>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Moritz Poldrack <moritz@poldrack.dev>
1 files changed, 1 insertions(+), 0 deletions(-)

M widgets/account.go
M widgets/account.go => widgets/account.go +1 -0
@@ 540,6 540,7 @@ func (acct *AccountView) updateSplitView(msg *models.MessageInfo) {
	}
	fn := func() {
		if acct.split != nil {
			acct.grid.RemoveChild(acct.split)
			acct.split.Close()
		}
		lib.NewMessageStoreView(msg, false, acct.Store(), acct.aerc.Crypto, acct.aerc.DecryptKeys,