mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Remove downloadPolicy preference which does not work
This commit is contained in:
parent
116d71f548
commit
960696eb9b
2 changed files with 4 additions and 18 deletions
|
@ -70,13 +70,6 @@ export default {
|
|||
attachments: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
downloadPolicy: {
|
||||
type: 'string',
|
||||
default: 'on-read',
|
||||
enum: ['on-read', 'manually'],
|
||||
enumLabels: ['When Read', 'Manually'],
|
||||
title: 'Download attachments for new mail',
|
||||
},
|
||||
openFolderAfterDownload: {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
|
|
|
@ -307,17 +307,10 @@ class MessageStore extends MailspringStore {
|
|||
}
|
||||
|
||||
_fetchExpandedAttachments(items) {
|
||||
const policy = AppEnv.config.get('core.attachments.downloadPolicy');
|
||||
if (policy === 'manually') return;
|
||||
|
||||
return (() => {
|
||||
const result = [];
|
||||
for (let item of items) {
|
||||
if (!this._itemsExpanded[item.id]) continue;
|
||||
result.push(item.files.map(file => Actions.fetchFile(file)));
|
||||
}
|
||||
return result;
|
||||
})();
|
||||
for (let item of items) {
|
||||
if (!this._itemsExpanded[item.id]) continue;
|
||||
item.files.map(file => Actions.fetchFile(file));
|
||||
}
|
||||
}
|
||||
|
||||
// Expand all unread messages, all drafts, and the last message
|
||||
|
|
Loading…
Reference in a new issue