Refactoring: remove store from PartInfo
This commit is contained in:
parent
4711933b41
commit
df20f1cd03
5 changed files with 6 additions and 5 deletions
commands/msgview
|
@ -108,7 +108,8 @@ func (Save) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
}
|
||||
|
||||
ch := make(chan error, 1)
|
||||
pi.Store.FetchBodyPart(
|
||||
store := mv.Store()
|
||||
store.FetchBodyPart(
|
||||
pi.Msg.Uid, pi.Msg.BodyStructure, pi.Index, func(reader io.Reader) {
|
||||
f, err := os.Create(path)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue