mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 13:40:00 +00:00
ui-widgets: always run dropdown function on select
This commit is contained in:
+4
-4
@@ -124,10 +124,6 @@ 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()
|
||||
@@ -165,6 +161,10 @@ 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