mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
ui-widgets: always recursions in dropdown select
This commit is contained in:
+4
-4
@@ -124,6 +124,10 @@ do -- dropdown
|
||||
else
|
||||
this.parent:HideMenu()
|
||||
end
|
||||
|
||||
if this.parent.menu[this.id].func then
|
||||
this.parent.menu[this.id].func()
|
||||
end
|
||||
end
|
||||
|
||||
local function ListEntryOnEnter()
|
||||
@@ -161,10 +165,6 @@ do -- dropdown
|
||||
if id and self.menu and self.menu[id] then
|
||||
self.text:SetText(self.menu[id].text)
|
||||
self.id = id
|
||||
|
||||
if self.menu[id].func then
|
||||
self.menu[id].func()
|
||||
end
|
||||
end
|
||||
end,
|
||||
["SetSelectionByText"] = function(self, name)
|
||||
|
||||
Reference in New Issue
Block a user