cachedItemList
This commit is contained in:
1 parent
2cb847c8cd
commit
58ab40d14e
2 files changed
+9
-2
No files matched your search
@@ -6,11 +6,14 @@ Callback = Callback or Require("lib/utility/shared/callbacks.lua")
|
||||
|
||||
Framework = Framework or {}
|
||||
|
||||
local cachedItemList = nil
|
||||
-- This is an internal function, its here to attempt to emulate qbs shared items mainly.
|
||||
Framework.ItemList = function()
|
||||
if cachedItemList then return cachedItemList end
|
||||
local items = Callback.Trigger('community_bridge:Callback:GetFrameworkItems', false)
|
||||
local fakeShared = { Items = items.Items or {} }
|
||||
return fakeShared
|
||||
cachedItemList = fakeShared
|
||||
return cachedItemList
|
||||
end
|
||||
|
||||
---This will get the name of the framework being used (if a supported framework).
|
||||
|
||||
Reference in new issue
Block a user