From 38a42d3c91572e7ccb919ee9dd4ca385bdf1b0d5 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Wed, 21 Feb 2024 15:03:07 +0200 Subject: [PATCH] Properly trigger shifted annotation sync after deleting PDF pages --- chrome/content/zotero/xpcom/pdfWorker/manager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/pdfWorker/manager.js b/chrome/content/zotero/xpcom/pdfWorker/manager.js index 837db8fb68..08a33ffea2 100644 --- a/chrome/content/zotero/xpcom/pdfWorker/manager.js +++ b/chrome/content/zotero/xpcom/pdfWorker/manager.js @@ -532,6 +532,7 @@ class PDFWorker { await object.reload(null, true); } } + await Zotero.Items.updateSynced(ids, false); await Zotero.Notifier.trigger('modify', 'item', ids, {}); await IOUtils.write(path, new Uint8Array(modifiedBuf));