mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bug fix in item_table_stack
should create a new one for each menu widget invoke
This commit is contained in:
@@ -218,7 +218,7 @@ Menu = FocusManager:new{
|
||||
"A", "S", "D", "F", "G", "H", "J", "K", "L", "Del",
|
||||
"Z", "X", "C", "V", "B", "N", "M", ".", "Sym", "Enter",
|
||||
},
|
||||
item_table_stack = {},
|
||||
item_table_stack = nil,
|
||||
is_enable_shortcut = true,
|
||||
|
||||
item_dimen = nil,
|
||||
@@ -256,6 +256,7 @@ function Menu:_recalculateDimen()
|
||||
end
|
||||
|
||||
function Menu:init()
|
||||
self.item_table_stack = {}
|
||||
self:_recalculateDimen()
|
||||
self.page = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user