From 2f5974e1ab95e5af056922bf5eeb2ab0d6f225bd Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Thu, 24 Mar 2022 13:40:43 +0200 Subject: [PATCH] Reduce probability of annotation comment/text being cleared while typing Fixes #2361 --- chrome/content/zotero/xpcom/reader.js | 4 ++++ pdf-reader | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/reader.js b/chrome/content/zotero/xpcom/reader.js index d53ed84161..b7d8506f03 100644 --- a/chrome/content/zotero/xpcom/reader.js +++ b/chrome/content/zotero/xpcom/reader.js @@ -650,6 +650,10 @@ class ReaderInstance { } }; + if (annotation.onlyTextOrComment) { + saveOptions.notifierData.autoSyncDelay = Zotero.Notes.AUTO_SYNC_DELAY; + } + // Note: annotation.image is always saved separately from the rest // of annotation properties diff --git a/pdf-reader b/pdf-reader index 5fac55a5f3..04f474c5e2 160000 --- a/pdf-reader +++ b/pdf-reader @@ -1 +1 @@ -Subproject commit 5fac55a5f3450419a0539d8f75a30b95c2518ea3 +Subproject commit 04f474c5e2eee49e2837cd4106c3630674abe30c