framework updates

This commit is contained in:
Tercio Jose
2024-05-11 14:46:51 -03:00
parent c031558109
commit 33a0120881
3 changed files with 12 additions and 7 deletions
+4
View File
@@ -399,6 +399,10 @@ function DropDownMetaFunctions:Select(optionName, byOptionNumber, bOnlyShown, ru
local runOkay, optionsTable = xpcall(self.func, geterrorhandler(), self)
if (type(optionsTable) ~= "table") then
error("optionsTable for Dropdown:Select() is not of type 'table'. Check if the dropdown menu function is returning a table.")
end
if (#optionsTable == 0) then
self:NoOption(true)
return true