mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Round waypoint TOTs in the UI.
This commit is contained in:
parent
bbb6251aa9
commit
de3ba5908f
@ -349,6 +349,7 @@ class QLiberationMap(QGraphicsView):
|
||||
if time is None:
|
||||
tot = ""
|
||||
else:
|
||||
time = datetime.timedelta(seconds=int(time.total_seconds()))
|
||||
tot = f"{prefix} T+{time}"
|
||||
|
||||
pen = QPen(QColor("black"), 0.3)
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import itertools
|
||||
from datetime import timedelta
|
||||
|
||||
from PySide2.QtCore import QItemSelectionModel, QPoint
|
||||
from PySide2.QtGui import QStandardItem, QStandardItemModel
|
||||
@ -81,4 +82,5 @@ class QFlightWaypointList(QTableView):
|
||||
time = flight.flight_plan.depart_time_for_waypoint(waypoint)
|
||||
if time is None:
|
||||
return ""
|
||||
time = timedelta(seconds=int(time.total_seconds()))
|
||||
return f"{prefix}T+{time}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user