mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Save a few table indexing operations since we already have the page number.
This commit is contained in:
@@ -1802,7 +1802,7 @@ function UniReader:showToc()
|
||||
showInfoMsgWithDelay("External links unsupported", 1500, 1)
|
||||
self.toc_curitem = ret_code
|
||||
else
|
||||
return self:gotoTocEntry(self.toc[self.toc_curidx_to_x[ret_code]])
|
||||
return self:goto(pagenum)
|
||||
end
|
||||
elseif item_no then -- expand or collapse item
|
||||
local abs_item_no = math.abs(item_no)
|
||||
|
||||
Reference in New Issue
Block a user