commit 757709cf43cef7794659738b9dae50b936a6079f
parent da49f9900f2f208b97de7ce53e080a63930a7437
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 28 Feb 2018 16:27:11 -0500
Fix auto-rename after PDF recognition (wrong pref in f8b41c971)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/recognizePDF.js b/chrome/content/zotero/xpcom/recognizePDF.js
@@ -268,7 +268,7 @@ Zotero.RecognizePDF = new function () {
});
// Rename attachment file to match new metadata
- if (Zotero.Prefs.get('renameAttachmentFiles')) {
+ if (Zotero.Prefs.get('renameAttachmentFiles.automatic')) {
let path = attachment.getFilePath();
let ext = Zotero.File.getExtension(path);
let fileBaseName = Zotero.Attachments.getFileBaseNameFromItem(parentItem);