mirror of
https://github.com/koreader/koreader.git
synced 2026-11-29 08:42:31 +00:00
FM/ReaderMenu: delay reopening menu when onRebuildMenu
This commit is contained in:
1 parent
163238f482
commit
ef3c4fc44a
2 files changed
+16
-12
No files matched your search
@@ -523,12 +523,14 @@ function ReaderMenu:onRebuildMenu()
|
||||
self:teardownMenu()
|
||||
|
||||
if was_open then
|
||||
self:onShowMenu(nil, true)
|
||||
local menu = self.menu_container[1]
|
||||
if state and menu.restoreState then
|
||||
menu:restoreState(state.path_stack, state.page)
|
||||
end
|
||||
UIManager:show(self.menu_container)
|
||||
UIManager:nextTick(function()
|
||||
self:onShowMenu(nil, true)
|
||||
local menu = self.menu_container[1]
|
||||
if state and menu.restoreState then
|
||||
menu:restoreState(state.path_stack, state.page)
|
||||
end
|
||||
UIManager:show(self.menu_container)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user