From d205e66fe47a1f702bc317eacb5cfee077826285 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sun, 13 Aug 2023 12:31:54 -0700 Subject: [PATCH] Don't flag negative starts for active flights. If the flight has already passed its start up time, this isn't a negative start. --- qt_ui/widgets/QTopPanel.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qt_ui/widgets/QTopPanel.py b/qt_ui/widgets/QTopPanel.py index 40204772..c49b088b 100644 --- a/qt_ui/widgets/QTopPanel.py +++ b/qt_ui/widgets/QTopPanel.py @@ -172,9 +172,11 @@ class QTopPanel(QFrame): if not package.flights: continue for flight in package.flights: - if flight.flight_plan.startup_time().total_seconds() < 0: - packages.append(package) - break + if flight.state.is_waiting_for_start: + startup = flight.flight_plan.startup_time() + if startup < 0: + packages.append(package) + break return packages @staticmethod