diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-10-07 11:00:31 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-12 22:16:40 +0200 |
commit | ba24e92062f1a9b38065d503fd1dde749c27a56c (patch) | |
tree | d1a2981f8f9bda50a070b50c688388fe2130f770 /commands/account/next-result.go | |
parent | 34014d3ceeebe8a9c131213fa56d1977fbc26b4a (diff) | |
download | aerc-ba24e92062f1a9b38065d503fd1dde749c27a56c.tar.gz |
invalidatable: cleanup dead code
Remove invalidatable type and all associated calls. All items can
directly invalidate the UI.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/account/next-result.go')
-rw-r--r-- | commands/account/next-result.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/account/next-result.go b/commands/account/next-result.go index daa7af3c..922f95a1 100644 --- a/commands/account/next-result.go +++ b/commands/account/next-result.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" + "git.sr.ht/~rjarry/aerc/lib/ui" "git.sr.ht/~rjarry/aerc/widgets" ) @@ -34,13 +35,13 @@ func (NextPrevResult) Execute(aerc *widgets.Aerc, args []string) error { if store != nil { store.PrevResult() } - acct.Messages().Invalidate() + ui.Invalidate() } else { store := acct.Store() if store != nil { store.NextResult() } - acct.Messages().Invalidate() + ui.Invalidate() } return nil } |