mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
Cut off board/port name at 50 instead of 16. Fixes #3104
This commit is contained in:
parent
57dcf07244
commit
8ee35d0c52
@ -801,7 +801,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
if (sel == null) {
|
||||
if (!name.equals(basename)) menu.setText(basename);
|
||||
} else {
|
||||
if (sel.length() > 17) sel = sel.substring(0, 16) + "...";
|
||||
if (sel.length() > 50) sel = sel.substring(0, 50) + "...";
|
||||
String newname = basename + ": \"" + sel + "\"";
|
||||
if (!name.equals(newname)) menu.setText(newname);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user