-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Menus defined in boards.txt have no defined ordering #7955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Compiled and tested Linux x64 Java 8. The ordering is now alpha by menu title and seems to work without issue. That's certainly an improvement over random - core authors can easily fudge menu titles with a prefixed index number "01. Blah Menu", "02. Foo Menu", or they can also be a bit kludgy and use a sequences of zero width space characters before each menu whichseems to work (1 zero-width space = 1st item, 2 zero-width spaces = 2nd item...) also, just a bit hard to see what you're doing when coding it :-) Ideally of course instead of alpha it would just preserve the order the menus were defined in boards.txt, but that might be more complicated. |
@sleemanj could you try this build #7956 (comment)? I've used a |
Compiled and tested Linux x64 Java 8. Perfect |
If one defines menus in a boards.txt there is no defined or even reliable or repeatable ordering for how those menus are sorted in the Tools menu
Example, if one defines menus thusly
then one might reasonably expect them to be shown in this order (where a variant has that menu), however the actual results appear largely at-random with no discernible pattern I can see, not alpha, not first appearance in the file... I think it's just pretty much random.
The text was updated successfully, but these errors were encountered: