Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Improved negative star distance text
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi0x committed Sep 10, 2021
1 parent 083fb43 commit 58bd60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/fi0x/edct/gui/controller/Station.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void setStation(TRADE station, boolean hasPrev, boolean hasNext)

df.setMaximumFractionDigits(0);

lblStarDistance.setText("Star Distance:\t " + df.format(station.STATION.DISTANCE_TO_STAR) + " Ls");
lblStarDistance.setText("Star Distance:\t " + (station.STATION.DISTANCE_TO_STAR < 0 ? "---" : df.format(station.STATION.DISTANCE_TO_STAR) + " Ls"));
lblAge.setText("Data age:\t " + station.getUpdateAge());

btnPrevStation.setDisable(!hasPrev);
Expand Down

0 comments on commit 58bd60a

Please sign in to comment.