From ecad35dc80ef79f14715fec60620669490f6b618 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:33:46 +0300 Subject: [PATCH] readerannotation: annotations_externally_modified --- frontend/apps/reader/modules/readerannotation.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/apps/reader/modules/readerannotation.lua b/frontend/apps/reader/modules/readerannotation.lua index 20ad1b3d4..a7d8a81e6 100644 --- a/frontend/apps/reader/modules/readerannotation.lua +++ b/frontend/apps/reader/modules/readerannotation.lua @@ -90,7 +90,7 @@ function ReaderAnnotation:onReadSettings(config) if annotations then -- KOHighlights may set this key when it has merged annotations from different sources: -- we want to make sure they are updated and sorted - local needs_update = config:isTrue("annotations_modified") + local needs_update = config:isTrue("annotations_externally_modified") local needs_sort -- if incompatible annotations were built of old highlights/bookmarks -- Annotation formats in crengine and mupdf are incompatible. local has_annotations = #annotations > 0 @@ -120,7 +120,7 @@ function ReaderAnnotation:onReadSettings(config) else self:updatedAnnotations(needs_update, needs_sort) end - config:delSetting("annotations_modified") + config:delSetting("annotations_externally_modified") end else -- first run if self.ui.rolling then