1
0
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:
Matthijs Kooijman 2020-02-03 17:10:55 +01:00 committed by Cristian Maglie
parent 6c1100f9ec
commit 9b48e8d047

View File

@ -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,