aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/account.go')
-rw-r--r--widgets/account.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go
index a99f7a48..e28804de 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -95,6 +95,11 @@ func NewAccountView(
view.msglist = NewMessageList(aerc, view)
view.grid.AddChild(view.msglist).At(0, 1)
+ view.dirlist.OnVirtualNode(func() {
+ view.msglist.SetStore(nil)
+ view.Invalidate()
+ })
+
go func() {
defer log.PanicHandler()