mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Keep "Board Manager" entry always on top of its menu
This commit is contained in:
parent
f0e5bab51c
commit
ffa13ed733
@ -1404,7 +1404,7 @@ public class Base {
|
|||||||
// The first custom menu is the "Board" selection submenu
|
// The first custom menu is the "Board" selection submenu
|
||||||
JMenu boardMenu = new JMenu(tr("Board"));
|
JMenu boardMenu = new JMenu(tr("Board"));
|
||||||
boardMenu.putClientProperty("removeOnWindowDeactivation", true);
|
boardMenu.putClientProperty("removeOnWindowDeactivation", true);
|
||||||
MenuScroller.setScrollerFor(boardMenu);
|
MenuScroller.setScrollerFor(boardMenu).setTopFixedCount(1);
|
||||||
|
|
||||||
boardMenu.add(new JMenuItem(new AbstractAction(tr("Boards Manager...")) {
|
boardMenu.add(new JMenuItem(new AbstractAction(tr("Boards Manager...")) {
|
||||||
public void actionPerformed(ActionEvent actionevent) {
|
public void actionPerformed(ActionEvent actionevent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user