mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Menu: Clear path history on close (#7028)
Move the the paths table outside of the class, make it per instance instead
This commit is contained in:
@@ -551,8 +551,6 @@ local Menu = FocusManager:new{
|
||||
page_info = nil,
|
||||
page_return = nil,
|
||||
|
||||
paths = {}, -- table to trace navigation path
|
||||
|
||||
-- set this to true to not paint as popup menu
|
||||
is_borderless = false,
|
||||
-- if you want to embed the menu widget into another widget, set
|
||||
@@ -608,6 +606,8 @@ function Menu:init()
|
||||
end
|
||||
self.page = 1
|
||||
|
||||
self.paths = {} -- per instance table to trace navigation path
|
||||
|
||||
-----------------------------------
|
||||
-- start to set up widget layout --
|
||||
-----------------------------------
|
||||
|
||||
Reference in New Issue
Block a user