* Fixed menu cache
This commit is contained in:
parent
decdaf6736
commit
1b65106ac8
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,7 @@ scope = {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Local menu database
|
-- Local menu database
|
||||||
local menu = {}
|
local menu = nil
|
||||||
|
|
||||||
-- The current pointer
|
-- The current pointer
|
||||||
local menuc = {}
|
local menuc = {}
|
||||||
|
@ -119,6 +119,7 @@ end
|
||||||
-- Returns the menu information
|
-- Returns the menu information
|
||||||
function get()
|
function get()
|
||||||
if not menu then
|
if not menu then
|
||||||
|
menu = {}
|
||||||
collect()
|
collect()
|
||||||
end
|
end
|
||||||
return menu
|
return menu
|
||||||
|
|
Loading…
Reference in a new issue