mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user