Bookmarks: refresh list entry when closing Bookmark details dialog with X (#12390)

Also: refresh dogear state for current page when closing Page browser
or Book map, as we may have toggled bookmark on it.
This commit is contained in:
Frédéric Brière
2024-08-21 17:46:51 -04:00
committed by GitHub
parent 9c001a660a
commit 39fa008e21
3 changed files with 24 additions and 13 deletions

View File

@@ -1437,9 +1437,11 @@ function BookMapWidget:onClose(close_all_parents)
collectgarbage()
collectgarbage()
end)
-- As we're getting back to Reader, update the footer and do a full flashing
-- As we're getting back to Reader, update the footer and the dogear state
-- (we may have toggled bookmark for current page) and do a full flashing
-- refresh to remove any ghost trace of thumbnails or black page slots
UIManager:broadcastEvent(Event:new("UpdateFooter"))
self.ui.bookmark:onPageUpdate(self.ui:getCurrentPage())
UIManager:setDirty(self.ui.dialog, "full")
end
return true