From df20f1cd03fcc369d3927b0936d0d126974f3b9a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 6 Mar 2020 10:33:44 -0500 Subject: Refactoring: remove store from PartInfo --- commands/msgview/open.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/msgview/open.go') diff --git a/commands/msgview/open.go b/commands/msgview/open.go index b467543..d4eacd4 100644 --- a/commands/msgview/open.go +++ b/commands/msgview/open.go @@ -33,7 +33,8 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error { mv := aerc.SelectedTab().(*widgets.MessageViewer) p := mv.SelectedMessagePart() - p.Store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) { + store := mv.Store() + store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) { tmpFile, err := ioutil.TempFile(os.TempDir(), "aerc-") if err != nil { aerc.PushError(" " + err.Error()) -- cgit 1.4.1-2-gfad0