From b78d9c1576e4264cbc83ccfa57ce850ff630d227 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Wed, 23 Dec 2020 00:24:16 +0100 Subject: [PATCH] Menu: Clear path history on close (#7028) Move the the paths table outside of the class, make it per instance instead --- frontend/ui/widget/menu.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/widget/menu.lua b/frontend/ui/widget/menu.lua index 1c6450c3b..473530134 100644 --- a/frontend/ui/widget/menu.lua +++ b/frontend/ui/widget/menu.lua @@ -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 -- -----------------------------------