Accurate "AnnotationsModified" event handling (#16241)

- Closes #16236
This commit is contained in:
hius07 authored and GitHub committed 2026-10-15 19:35:47 +02:00
1 parent 892034c96e
commit e551601fc4
3 files changed
+16 -8

No files matched your search

+4 -2
View File
@@ -985,8 +985,10 @@ function ReaderUI:onOpenLastDoc()
filemanagerutil.openFile(self, self.menu:getPreviousFile())
end
function ReaderUI:onAnnotationsModified()
BookList.setBookInfoCacheProperty(self.document.file, "has_annotations", self.annotation:hasAnnotations())
function ReaderUI:onAnnotationsModified(items)
if items.index_modified then
BookList.setBookInfoCacheProperty(self.document.file, "has_annotations", self.annotation:hasAnnotations())
end
end
function ReaderUI:onDocumentRerendered()