Fix negative starts when changing TOT offsets.

This commit is contained in:
Dan Albert
2023-07-23 11:01:34 -07:00
committed by Raffson
parent 091d523516
commit c11b4149a0
2 changed files with 3 additions and 0 deletions

View File

@@ -128,8 +128,10 @@ class FlightPlanPropertiesGroup(QGroupBox):
if self.negative_offset_checkbox.isChecked():
offset = -offset
self.flight.flight_plan.tot_offset = offset
self.package_model.update_tot()
self.update_departure_time()
def toggle_negative_offset(self) -> None:
self.flight.flight_plan.tot_offset = -self.flight.flight_plan.tot_offset
self.package_model.update_tot()
self.update_departure_time()