Fix gui.FilteredList widget search on plain string choices

develop
nicolasayala 2020-02-27 07:56:30 +01:00
parent 92eb8b058b
commit 141928ead0
1 changed files with 1 additions and 1 deletions

@ -736,9 +736,9 @@ end
function FilteredList:setChoices(choices, pos) function FilteredList:setChoices(choices, pos)
choices = choices or {} choices = choices or {}
self.choices = choices
self.edit.text = '' self.edit.text = ''
self.list:setChoices(choices, pos) self.list:setChoices(choices, pos)
self.choices = self.list.choices
self.not_found.visible = (#choices == 0) self.not_found.visible = (#choices == 0)
end end