{"comment":{"url":"https://api.github.com/repos/votan73/ESO-LibAddonMenu/comments/9766799","html_url":"https://github.com/votan73/ESO-LibAddonMenu/commit/5cf16d99cc73804b4bac96722e69582b7a8e2514#commitcomment-9766799","id":9766799,"user":{"login":"sirinsidiator","id":10908027,"avatar_url":"https://avatars.githubusercontent.com/u/10908027?v=3","gravatar_id":"","url":"https://api.github.com/users/sirinsidiator","html_url":"https://github.com/sirinsidiator","followers_url":"https://api.github.com/users/sirinsidiator/followers","following_url":"https://api.github.com/users/sirinsidiator/following{/other_user}","gists_url":"https://api.github.com/users/sirinsidiator/gists{/gist_id}","starred_url":"https://api.github.com/users/sirinsidiator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirinsidiator/subscriptions","organizations_url":"https://api.github.com/users/sirinsidiator/orgs","repos_url":"https://api.github.com/users/sirinsidiator/repos","events_url":"https://api.github.com/users/sirinsidiator/events{/privacy}","received_events_url":"https://api.github.com/users/sirinsidiator/received_events","type":"User","site_admin":false},"position":15,"line":101,"path":"LibAddonMenu-2.0/LibAddonMenu-2.0/controls/dropdown.lua","commit_id":"5cf16d99cc73804b4bac96722e69582b7a8e2514","created_at":"2015-02-16T18:23:55Z","updated_at":"2015-02-16T18:23:55Z","body":"As I missed the name=\"\" part you can change it to a combination between our solutions and keep the if, but do the counting for both.\r\n```lua\r\nlocal countControl = parent\r\nlocal name = countControl:GetName()\r\nif not name or #name == 0 then\r\ncountControl = LAMCreateControl\r\nname = \"LAM\"\r\nend\r\ncomboboxCount = (countControl.comboboxCount or 0) + 1\r\ncountControl.comboboxCount = comboboxCount\r\n```"}}