mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Fixed preference setting whe changing board
This commit is contained in:
parent
65afe35433
commit
ab00a1360f
@ -1087,8 +1087,7 @@ public class Base {
|
||||
for (TargetPackage targetPackage : packages.values()) {
|
||||
for (TargetPlatform targetPlatform : targetPackage.platforms()) {
|
||||
for (String programmer : targetPlatform.getProgrammers().keySet()) {
|
||||
String id = targetPackage.getName() + ":" + targetPlatform.getName() +
|
||||
":" + programmer;
|
||||
String id = targetPackage.getName() + ":" + programmer;
|
||||
AbstractAction action = new AbstractAction(targetPlatform
|
||||
.getProgrammers().get(programmer).get("name")) {
|
||||
public void actionPerformed(ActionEvent actionevent) {
|
||||
@ -1569,9 +1568,9 @@ public class Base {
|
||||
|
||||
static public PreferencesMap getBoardPreferences() {
|
||||
TargetPlatform target = getTargetPlatform();
|
||||
String board = Preferences.get("board");
|
||||
String board = Preferences.get("board");
|
||||
return target.getBoards().get(board);
|
||||
}
|
||||
}
|
||||
|
||||
static public File getSketchbookFolder() {
|
||||
return new File(Preferences.get("sketchbook.path"));
|
||||
|
Loading…
Reference in New Issue
Block a user