From ce1061c2fb80dc0e9e80b44602012626501b5ad8 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Mon, 2 Sep 2024 14:16:04 +0300 Subject: [PATCH] Remove unused "transfer to PDF file" feature artifacts --- chrome/content/zotero/xpcom/pdfWorker/manager.js | 2 +- chrome/locale/en-US/zotero/zotero.properties | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/pdfWorker/manager.js b/chrome/content/zotero/xpcom/pdfWorker/manager.js index 337fc04cbd..a74eafe4a2 100644 --- a/chrome/content/zotero/xpcom/pdfWorker/manager.js +++ b/chrome/content/zotero/xpcom/pdfWorker/manager.js @@ -229,7 +229,7 @@ class PDFWorker { throw error; } - await IOUtils.write(path || attachmentPath, new Uint8Array(res.buf)); + await IOUtils.write(path, new Uint8Array(res.buf)); if (transfer) { await Zotero.Items.erase(items.map(x => x.id)); diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 78b0adbc6b..072e703186 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -1401,8 +1401,6 @@ pdfReader.location = Location pdfReader.readOnly = Read-only pdfReader.promptTransferFromPDF.title = Import Annotations pdfReader.promptTransferFromPDF.text = Annotations stored in the PDF file will be moved to %1$S. -pdfReader.promptTransferToPDF.title = Store Annotations in File -pdfReader.promptTransferToPDF.text = Annotations will be transferred to the PDF file and will no longer be editable in %S. pdfReader.promptPasswordProtected = The operation is not supported for password-protected PDF files. pdfReader.promptDeletePages.title = Delete Pages pdfReader.promptDeletePages.text = Are you sure you want to delete %1$S page from the PDF file?;Are you sure you want to delete %1$S pages from the PDF file?