mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
parent
62a40db9ea
commit
d205e66fe4
@ -172,9 +172,11 @@ 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:
|
||||||
packages.append(package)
|
startup = flight.flight_plan.startup_time()
|
||||||
break
|
if startup < 0:
|
||||||
|
packages.append(package)
|
||||||
|
break
|
||||||
return packages
|
return packages
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user