mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-21 10:52:14 +01:00
Sort board submenus alphabetically
This sorts the board submenus themselves, based on the displayed name. This does not change the ordering of board items within these submenus (which uses the order from boards.txt).
This commit is contained in:
parent
6c1100f9ec
commit
9b48e8d047
@ -1510,6 +1510,8 @@ public class Base {
|
||||
}
|
||||
}
|
||||
|
||||
platformMenus.sort((x,y) -> x.getText().compareToIgnoreCase(y.getText()));
|
||||
|
||||
JMenuItem firstBoardItem = null;
|
||||
if (platformMenus.size() == 1) {
|
||||
// When just one platform exists, add the board items directly,
|
||||
|
Loading…
x
Reference in New Issue
Block a user