1
0
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:
Federico Fissore 2015-05-19 16:45:53 +02:00
parent 57dcf07244
commit 8ee35d0c52

View File

@ -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);
}