mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Hide non-linear fragments
Add option to hide (skip) non-linear fragments, only working in 1-page mode. Tweaks mostly to footer, toc and skim code to make it clear(er) which pages belong to linear or non-linear fragments.
This commit is contained in:
@@ -1034,7 +1034,7 @@ end
|
||||
-- mode, and other zoom modes than Fit page
|
||||
function ReaderPaging:onGotoNextChapter()
|
||||
local pageno = self.current_page
|
||||
local new_page = self.ui.toc:getNextChapter(pageno, 0)
|
||||
local new_page = self.ui.toc:getNextChapter(pageno)
|
||||
if new_page then
|
||||
self.ui.link:addCurrentLocationToStack()
|
||||
self:onGotoPage(new_page)
|
||||
@@ -1044,7 +1044,7 @@ end
|
||||
|
||||
function ReaderPaging:onGotoPrevChapter()
|
||||
local pageno = self.current_page
|
||||
local new_page = self.ui.toc:getPreviousChapter(pageno, 0)
|
||||
local new_page = self.ui.toc:getPreviousChapter(pageno)
|
||||
if new_page then
|
||||
self.ui.link:addCurrentLocationToStack()
|
||||
self:onGotoPage(new_page)
|
||||
|
||||
Reference in New Issue
Block a user