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