File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 102
102
import processing .app .helpers .DocumentTextChangeListener ;
103
103
import processing .app .helpers .Keys ;
104
104
import processing .app .helpers .OSUtils ;
105
+ import processing .app .helpers .PreferencesMap ;
105
106
import processing .app .helpers .PreferencesMapException ;
106
107
import processing .app .helpers .StringReplacer ;
107
108
import processing .app .legacy .PApplet ;
@@ -2587,9 +2588,9 @@ private void statusEmpty() {
2587
2588
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2588
2589
2589
2590
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" ));
2593
2594
else
2594
2595
lineStatus .setBoardName ("-" );
2595
2596
lineStatus .setPort (PreferencesData .get ("serial.port" ));
You can’t perform that action at this time.
0 commit comments