From 345b7d78cb6ac913dfa9946ee2c2221cb72ed074 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Thu, 2 Feb 2023 20:42:23 -0800 Subject: [PATCH] pass attributes through FilteredList --- library/lua/gui/widgets.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/lua/gui/widgets.lua b/library/lua/gui/widgets.lua index 5b918a13b..f9c9bb27e 100644 --- a/library/lua/gui/widgets.lua +++ b/library/lua/gui/widgets.lua @@ -1897,6 +1897,16 @@ function FilteredList:init(info) return info.on_submit2(self:getSelected()) end end + if info.on_double_click then + self.list.on_double_click = function() + return info.on_double_click(self:getSelected()) + end + end + if info.on_double_click2 then + self.list.on_double_click2 = function() + return info.on_double_click2(self:getSelected()) + end + end self.not_found = Label{ visible = true, text = info.not_found_label or 'No matches',