FM/ReaderMenu: delay reopening menu when onRebuildMenu

This commit is contained in:
Commodore64user authored and David committed 2026-10-26 22:34:21 +00:00
1 parent 163238f482
commit ef3c4fc44a
2 files changed
+16 -12

No files matched your search

+8 -6
View File
@@ -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