Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎app/src/processing/app/Base.java

Lines changed: 2 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /