mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
BD invert: enable for TOC BookMap & PageBrowser
This commit is contained in:
committed by
Frans de Jonge
parent
42dd5aadca
commit
60f68023d8
@@ -644,6 +644,10 @@ function ReaderToc:expandParentNode(index)
|
||||
end
|
||||
|
||||
function ReaderToc:onShowToc()
|
||||
if self.view.inverse_reading_order then
|
||||
BD.invert()
|
||||
end
|
||||
|
||||
self:fillToc()
|
||||
-- build menu items
|
||||
if #self.toc > 0 and not self.toc[1].text then
|
||||
@@ -813,6 +817,7 @@ function ReaderToc:onShowToc()
|
||||
|
||||
toc_menu.close_callback = function()
|
||||
UIManager:close(menu_container)
|
||||
BD.resetInvert()
|
||||
end
|
||||
|
||||
toc_menu.show_parent = menu_container
|
||||
|
||||
Reference in New Issue
Block a user