Skip to content

Commit f04f8c6

Browse files
committed
Tabs are not expanded in combo box (macOS)
1 parent f9c0236 commit f04f8c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/io/calimero/gui/ProcCommTab.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,10 @@ private void loadDatapoints(final String systemId) {
465465
final TreeSet<Datapoint> set = new TreeSet<>(
466466
Comparator.comparingInt(dp -> dp.getMainAddress().getRawAddress()));
467467
set.addAll(model.getDatapoints());
468-
for (final Datapoint dp : set)
469-
points.add(dp.getMainAddress().toString() + "\t" + dp.getName());
468+
for (final Datapoint dp : set) {
469+
final var dpName = dp.getName().isEmpty() || "-".equals(dp.getName()) ? "" : " - " + dp.getName();
470+
points.add(dp.getMainAddress() + dpName);
471+
}
470472
}
471473

472474
private void saveDatapoints() {

0 commit comments

Comments
 (0)