mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove rounding from waypoint timing in the UI.
This is behaving strangely on some machines. Stop hiding the details in the UI while we debug.
This commit is contained in:
@@ -22,8 +22,7 @@ class QFlightItem(QStandardItem):
|
||||
self.setIcon(icon)
|
||||
self.setEditable(False)
|
||||
estimator = TotEstimator(self.package)
|
||||
delay = datetime.timedelta(
|
||||
seconds=int(estimator.mission_start_time(flight).total_seconds()))
|
||||
delay = estimator.mission_start_time(flight)
|
||||
self.setText("["+str(self.flight.flight_type.name[:6])+"] "
|
||||
+ str(self.flight.count) + " x " + db.unit_type_name(self.flight.unit_type)
|
||||
+ " in " + str(delay))
|
||||
|
||||
@@ -19,8 +19,7 @@ class QFlightDepartureDisplay(QGroupBox):
|
||||
layout.addLayout(departure_row)
|
||||
|
||||
estimator = TotEstimator(package)
|
||||
delay = datetime.timedelta(
|
||||
seconds=int(estimator.mission_start_time(flight).total_seconds()))
|
||||
delay = estimator.mission_start_time(flight)
|
||||
|
||||
departure_row.addWidget(QLabel(
|
||||
f"Departing from <b>{flight.from_cp.name}</b>"
|
||||
|
||||
Reference in New Issue
Block a user