Verified Commit 56884c76 authored by Repooc's avatar Repooc
Browse files

protect description name

Description name has to be a string or a func
parent 7c0475be
local LibStub = LibStub
local MAJOR, MINOR = 'LibAceConfigHelper', 5
local MAJOR, MINOR = 'LibAceConfigHelper', 6
local ACH = LibStub:NewLibrary(MAJOR, MINOR)
local LSM = LibStub('LibSharedMedia-3.0')
......@@ -11,7 +11,7 @@ function ACH:Color(name, desc, order, alpha, width, get, set, disabled, hidden)
end
function ACH:Description(name, order, fontSize, image, imageCoords, imageWidth, imageHeight, width, hidden)
return { type = 'description', name = name, order = order, fontSize = fontSize, image = image, imageCoords = imageCoords, imageWidth = imageWidth, imageHeight = imageHeight, width = width, hidden = hidden }
return { type = 'description', name = name or '', order = order, fontSize = fontSize, image = image, imageCoords = imageCoords, imageWidth = imageWidth, imageHeight = imageHeight, width = width, hidden = hidden }
end
function ACH:Execute(name, desc, order, func, image, confirm, width, get, set, disabled, hidden)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment