1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-13 10:29:35 +01:00

Keep "Board Manager" entry always on top of its menu

This commit is contained in:
Martino Facchin 2017-09-07 12:19:59 +02:00
parent f0e5bab51c
commit ffa13ed733

View File

@ -1404,7 +1404,7 @@ public class Base {
// The first custom menu is the "Board" selection submenu
JMenu boardMenu = new JMenu(tr("Board"));
boardMenu.putClientProperty("removeOnWindowDeactivation", true);
MenuScroller.setScrollerFor(boardMenu);
MenuScroller.setScrollerFor(boardMenu).setTopFixedCount(1);
boardMenu.add(new JMenuItem(new AbstractAction(tr("Boards Manager...")) {
public void actionPerformed(ActionEvent actionevent) {