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:
NiLuJe
2020-12-23 00:24:16 +01:00
committed by GitHub
parent d355e6482d
commit b78d9c1576

View File

@@ -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 --
-----------------------------------