mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Selected board and serial port on status bar.
This commit is contained in:
@ -993,6 +993,13 @@ public class Base {
|
||||
}
|
||||
|
||||
|
||||
public void onBoardOrPortChange() {
|
||||
for (Editor editor : editors) {
|
||||
editor.onBoardOrPortChange();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void rebuildBoardsMenu(JMenu menu) {
|
||||
//System.out.println("rebuilding boards menu");
|
||||
menu.removeAll();
|
||||
@ -1005,6 +1012,7 @@ public class Base {
|
||||
//System.out.println("Switching to " + target + ":" + board);
|
||||
Preferences.set("target", (String) getValue("target"));
|
||||
Preferences.set("board", (String) getValue("board"));
|
||||
onBoardOrPortChange();
|
||||
}
|
||||
};
|
||||
action.putValue("target", target.getName());
|
||||
|
Reference in New Issue
Block a user