mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Menu: Don't share the dimen object across Menu instances (!)
The object was never re-assigned, so closing a smaller menu (e.g., Calibre metadata search) made the underlying one (e.g., CoverBrowser's ListMenu) inherit the smaller dimensions... Instead of creating the object in the Class constructor, create it in the instance constructor (i.e., :init). Similar cleanups in other Menu* related classes.
This commit is contained in:
@@ -417,7 +417,7 @@ end
|
||||
TouchMenu widget for hierarchical menus
|
||||
--]]
|
||||
local TouchMenu = FocusManager:new{
|
||||
tab_item_table = {},
|
||||
tab_item_table = nil, -- mandatory
|
||||
-- for returning in multi-level menus
|
||||
item_table_stack = nil,
|
||||
item_table = nil,
|
||||
|
||||
Reference in New Issue
Block a user