mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix negative starts when changing TOT offsets.
This commit is contained in:
parent
d74ba4a6c9
commit
5fd29d8c9d
@ -26,6 +26,7 @@ Saves from 8.x are not compatible with 9.0.0.
|
|||||||
* **[UI]** Fixed flight properties UI to support F-15E S4+ laser codes.
|
* **[UI]** Fixed flight properties UI to support F-15E S4+ laser codes.
|
||||||
* **[UI]** In unit transfer dialog, only list control points that are reachable from the control point units are being transferred from.
|
* **[UI]** In unit transfer dialog, only list control points that are reachable from the control point units are being transferred from.
|
||||||
* **[UI]** Fixed UI bug where altering an "ahead of package" TOT offset would change the offset back to a "behind pacakge" offset.
|
* **[UI]** Fixed UI bug where altering an "ahead of package" TOT offset would change the offset back to a "behind pacakge" offset.
|
||||||
|
* **[UI]** Fixed bug where changing TOT offsets could result in flight startup times that are in the past.
|
||||||
|
|
||||||
# 8.1.0
|
# 8.1.0
|
||||||
|
|
||||||
|
|||||||
@ -119,8 +119,10 @@ class FlightPlanPropertiesGroup(QGroupBox):
|
|||||||
if self.negative_offset_checkbox.isChecked():
|
if self.negative_offset_checkbox.isChecked():
|
||||||
offset = -offset
|
offset = -offset
|
||||||
self.flight.flight_plan.tot_offset = offset
|
self.flight.flight_plan.tot_offset = offset
|
||||||
|
self.package_model.update_tot()
|
||||||
self.update_departure_time()
|
self.update_departure_time()
|
||||||
|
|
||||||
def toggle_negative_offset(self) -> None:
|
def toggle_negative_offset(self) -> None:
|
||||||
self.flight.flight_plan.tot_offset = -self.flight.flight_plan.tot_offset
|
self.flight.flight_plan.tot_offset = -self.flight.flight_plan.tot_offset
|
||||||
|
self.package_model.update_tot()
|
||||||
self.update_departure_time()
|
self.update_departure_time()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user