Skip to content

Commit

Permalink
聊天监控第一次点击下拉框没有选项的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tinymins committed Mar 7, 2017
1 parent 1a91f97 commit 0085f46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MY_ChatMonitor/src/MY_ChatMonitor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,13 @@ _C.OnPanelActive = function(wnd)
if IsPopupMenuOpened() then
MY.UI(raw):autocomplete('close')
else
local source = {}
for _, szOpt in ipairs(MY.LoadLUAData({_C.szLuaData, MY_DATA_PATH.GLOBAL}) or {}) do
if type(szOpt) == "string" then
table.insert(source, szOpt)
end
end
MY.UI(raw):autocomplete('option', 'source', source)
MY.UI(raw):autocomplete('search', '')
end
end)
Expand Down

0 comments on commit 0085f46

Please sign in to comment.