diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-26 02:34:23 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-26 03:04:30 +0200 |
| commit | ddfd5df84b4b7871ea16d76e233c11c8b45738d9 (patch) | |
| tree | 368dc5d2b39520c0650d09e3506986cddbc1d59c /menuconfig.py | |
| parent | 2320b7adb703c22e44ec9716a0d2605e80a02783 (diff) | |
Improve menu structure for promptless choices
Promptless choices can appear "legitimately" if you define a named
choice in multiple locations to add on some symbols (which is broken in
the C tools though).
Prior to this fix, the promptless choice would get flattened, with the
choice symbols appearing in the same menu as the (invisible) choice.
This looks confusing.
Skip flattening promptless choices to fix it.
Diffstat (limited to 'menuconfig.py')
| -rwxr-xr-x | menuconfig.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/menuconfig.py b/menuconfig.py index 25047f3..2166787 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1000,6 +1000,9 @@ def _shown_nodes(menu): # Choices can contain non-symbol items (people do all sorts of weird # stuff with them), hence the generality here. We really need to # preserve the menu tree at each choice location. + # + # Note: Named choices are pretty broken in the C tools, and this is + # super obscure, so you probably won't find much that relies on this. for node in menu.item.nodes: rec(node.list) else: |
