Skip to content

Commit 86d66f4

Browse files
committed
Fix status bar custom board preferences disappearing
1 parent f4e8a91 commit 86d66f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/processing/app/Editor.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
import processing.app.helpers.DocumentTextChangeListener;
103103
import processing.app.helpers.Keys;
104104
import processing.app.helpers.OSUtils;
105+
import processing.app.helpers.PreferencesMap;
105106
import processing.app.helpers.PreferencesMapException;
106107
import processing.app.helpers.StringReplacer;
107108
import processing.app.legacy.PApplet;
@@ -2587,9 +2588,9 @@ private void statusEmpty() {
25872588
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25882589

25892590
protected void onBoardOrPortChange() {
2590-
TargetBoard board = BaseNoGui.getTargetBoard();
2591-
if (board != null)
2592-
lineStatus.setBoardName(board.getName());
2591+
PreferencesMap boardPreferences = BaseNoGui.getBoardPreferences();
2592+
if (boardPreferences != null)
2593+
lineStatus.setBoardName(boardPreferences.get("name"));
25932594
else
25942595
lineStatus.setBoardName("-");
25952596
lineStatus.setPort(PreferencesData.get("serial.port"));

0 commit comments

Comments
 (0)