Skip to content

Commit 617feb9

Browse files
committed
fix waypoint time not showing in EnrouteWaypointsList when there's little space
Signed-off-by: Octol1ttle <[email protected]>
1 parent 962b329 commit 617feb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/screen/fms/enroute/EnrouteWaypointsList.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class EnrouteWaypointsList(y0: Int, y1: Int, width: Int, val columns: Float, val
102102
val distance: Double = distance2d(state.coordinatesX, state.coordinatesZ, computers.data.x, computers.data.z)
103103
guiGraphics.drawString(distance.roundToLong().toString(), (columnWidth * 5).toInt(), top, whiteColor, true)
104104

105-
if (hasExtraSpace) {
105+
if (!this.hovering || hasExtraSpace) {
106106
guiGraphics.drawString(computers.plan.getFormattedTime(distance), (columnWidth * 6).toInt(), top, whiteColor, true)
107107
}
108108
}

0 commit comments

Comments
 (0)