Skip to content

Commit

Permalink
Sort board submenus alphabetically
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
matthijskooijman committed Feb 3, 2020
1 parent f1cb18b commit e00b6d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,8 @@ public void actionPerformed(ActionEvent actionevent) {
}
}

Collections.sort(platformMenus, new JMenuItemTextComparator());

JMenuItem firstBoardItem = null;
if (platformMenus.size() == 1) {
// When just one platform exists, add the board items directly,
Expand Down

0 comments on commit e00b6d9

Please sign in to comment.