TOC, bookmarks: remember current page so we can go back to it

This commit is contained in:
poire-z
2018-01-31 13:18:37 +01:00
committed by Frans de Jonge
parent d0f9b53eb3
commit e615345ffa
3 changed files with 13 additions and 2 deletions

View File

@@ -241,6 +241,7 @@ function ReaderBookmark:onShowBookmark()
-- buid up menu widget method as closure
local bookmark = self
function bm_menu:onMenuChoice(item)
bookmark.ui.link:addCurrentLocationToStack()
bookmark:gotoBookmark(item.page)
end