From ba24e92062f1a9b38065d503fd1dde749c27a56c Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 7 Oct 2022 11:00:31 -0500 Subject: invalidatable: cleanup dead code Remove invalidatable type and all associated calls. All items can directly invalidate the UI. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- commands/msg/archive.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/msg/archive.go') diff --git a/commands/msg/archive.go b/commands/msg/archive.go index d485fd3d..beba3a63 100644 --- a/commands/msg/archive.go +++ b/commands/msg/archive.go @@ -9,6 +9,7 @@ import ( "git.sr.ht/~rjarry/aerc/commands" "git.sr.ht/~rjarry/aerc/lib" + "git.sr.ht/~rjarry/aerc/lib/ui" "git.sr.ht/~rjarry/aerc/logging" "git.sr.ht/~rjarry/aerc/models" "git.sr.ht/~rjarry/aerc/widgets" @@ -117,7 +118,7 @@ func (Archive) Execute(aerc *widgets.Aerc, args []string) error { if next == nil { aerc.RemoveTab(h.msgProvider) acct.Messages().Select(-1) - acct.Messages().Invalidate() + ui.Invalidate() return } lib.NewMessageStoreView(next, mv.MessageView().SeenFlagSet(), -- cgit