Menu: Clear path history on close (#7028)

Move the the paths table outside of the class, make it per instance instead
reviewable/pr7034/r1
NiLuJe 3 years ago committed by GitHub
parent d355e6482d
commit b78d9c1576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save