use setText() accessor method instead of direct access

develop
myk002 2022-08-15 16:22:56 -07:00 committed by Myk
parent 22f9f3b042
commit 7f0791f6c3
1 changed files with 2 additions and 2 deletions

@ -1162,7 +1162,7 @@ end
function FilteredList:setChoices(choices, pos)
choices = choices or {}
self.edit.text = ''
self.edit:setText('')
self.list:setChoices(choices, pos)
self.choices = self.list.choices
self.not_found.visible = (#choices == 0)
@ -1204,7 +1204,7 @@ function FilteredList:setFilter(filter, pos)
local cidx = nil
filter = filter or ''
self.edit.text = filter
self.edit:setText(filter)
if filter ~= '' then
local tokens = filter:split()