mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
yes
it will better to show and close one widget but I found the same problem in documentfont menu so dancing is continued
This commit is contained in:
@@ -137,13 +137,13 @@ function ReaderToc:onShowToc()
|
||||
self.ui:handleEvent(Event:new("PageUpdate", item.page))
|
||||
end
|
||||
|
||||
local w = Device:isTouchDevice() and menu_container or toc_menu
|
||||
|
||||
toc_menu.close_callback = function()
|
||||
UIManager:close(menu_container)
|
||||
UIManager:close(w)
|
||||
end
|
||||
|
||||
UIManager:show(menu_container)
|
||||
--nicolua
|
||||
UIManager:show(toc_menu)
|
||||
UIManager:show(w)
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user