diff options
| author | ruki <[email protected]> | 2018-01-31 22:43:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-31 10:21:26 +0800 |
| commit | 91b7ce3946a91022ddca0a3822346d81a2f1f74f (patch) | |
| tree | b19d5b54398f7eab928026c32485b1413c6eacb5 /xmake/core/language | |
| parent | b3e5b85cc8c74d934eaa437f00523284b773d4cc (diff) | |
add platform menu category
Diffstat (limited to 'xmake/core/language')
| -rw-r--r-- | xmake/core/language/menu.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/language/menu.lua b/xmake/core/language/menu.lua index 66690394a..03fcb127e 100644 --- a/xmake/core/language/menu.lua +++ b/xmake/core/language/menu.lua @@ -62,14 +62,14 @@ function menu.options(action) for _, option in ipairs(options) do -- merge it and remove repeat - local name = option[2] + local name = option[2] or option[1] if name then if not exist[name] then table.insert(results, option) exist[name] = true newline = false end - elseif not newline then + elseif option.category or not newline then table.insert(results, option) newline = true end |
