Skip to content

Commit

Permalink
set LibStub to silent
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Aug 22, 2024
1 parent 015fe95 commit 04c7dc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/Framework.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ SUI.Handlers = {}

---@param name string
---@param libaray table|function
---@param silent? boolean
SUI.AddLib = function(name, libaray, silent)
SUI.AddLib = function(name, libaray)
if not name then return end
if not libaray then return end

-- in this case: `major` is the lib table and `minor` is the minor version
if type(libaray) == 'table' then
SUI.Lib[name] = libaray
else -- in this case: `major` is the lib name and `minor` is the silent switch
SUI.Lib[name] = LibStub(libaray, silent)
SUI.Lib[name] = LibStub(libaray, true)
end
end

Expand Down

0 comments on commit 04c7dc4

Please sign in to comment.