Don't flag negative starts for active flights.

If the flight has already passed its start up time, this isn't a
negative start.
This commit is contained in:
Dan Albert 2023-08-13 12:31:54 -07:00 committed by Raffson
parent 62a40db9ea
commit d205e66fe4
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -172,7 +172,9 @@ class QTopPanel(QFrame):
if not package.flights: if not package.flights:
continue continue
for flight in package.flights: for flight in package.flights:
if flight.flight_plan.startup_time().total_seconds() < 0: if flight.state.is_waiting_for_start:
startup = flight.flight_plan.startup_time()
if startup < 0:
packages.append(package) packages.append(package)
break break
return packages return packages