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

@@ -345,6 +345,7 @@ function ReaderToc:onShowToc()
item.state.callback()
else
toc_menu:close_callback()
self.ui.link:addCurrentLocationToStack()
self.ui:handleEvent(Event:new("GotoPage", item.page))
end
end