Skip to content

Commit 55fa3f5

Browse files
matthijskooijmancmaglie
authored andcommitted
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).
1 parent 1964b81 commit 55fa3f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: app/src/processing/app/Base.java

+2
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,8 @@ public void actionPerformed(ActionEvent actionevent) {
15101510
}
15111511
}
15121512

1513+
platformMenus.sort((x,y) -> x.getText().compareToIgnoreCase(y.getText()));
1514+
15131515
JMenuItem firstBoardItem = null;
15141516
if (platformMenus.size() == 1) {
15151517
// When just one platform exists, add the board items directly,

0 commit comments

Comments
 (0)