diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-03-06 10:33:44 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-03-09 09:12:32 -0400 |
commit | df20f1cd03fcc369d3927b0936d0d126974f3b9a (patch) | |
tree | d2ff8a2511425cd0215e9b3c5365f8e1d7b084e6 /commands/msgview/open.go | |
parent | 4711933b41246629af3946ffc9fe0eeaa94e6639 (diff) | |
download | aerc-df20f1cd03fcc369d3927b0936d0d126974f3b9a.tar.gz |
Refactoring: remove store from PartInfo
Diffstat (limited to 'commands/msgview/open.go')
-rw-r--r-- | commands/msgview/open.go | 3 |
1 files changed, 2 insertions, 1 deletions
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()) |