diff --git a/changelog.md b/changelog.md index de7568b2..ee49cadc 100644 --- a/changelog.md +++ b/changelog.md @@ -31,6 +31,7 @@ Saves from 2.3 are not compatible with 2.4. * **[UI]** WIP - There is now a unit info button for each unit in the recruitment list, that should help newer players learn what each unit does. * **[UI]** Docs for time-on-target and creating new theaters/factions/loadouts are now linked in the UI at the appropriate places. * **[UI]** ASAP is now a checkbox rather than a button. Enabling this will disable the TOT selector but changes to the package structure will automatically re-ASAP the package. +* **[UI]** Arrival airfield is now shown in the flight list if it differs from the departure airfield. * **[Factions]** Added option for date-based loadout restriction. Active radar homing missiles are handled, patches welcome for the other thousand weapons. * **[Factions]** Added Poland 2010 faction. * **[Factions]** Added Greece 2005 faction. diff --git a/qt_ui/widgets/ato.py b/qt_ui/widgets/ato.py index 11cff960..aece9ee1 100644 --- a/qt_ui/widgets/ato.py +++ b/qt_ui/widgets/ato.py @@ -60,9 +60,6 @@ class FlightDelegate(QStyledItemDelegate): def first_row_text(self, index: QModelIndex) -> str: flight = self.flight(index) - task = flight.flight_type - count = flight.count - name = db.unit_type_name(flight.unit_type) estimator = TotEstimator(self.package) delay = estimator.mission_start_time(flight) return f"{flight} in {delay}" @@ -70,6 +67,8 @@ class FlightDelegate(QStyledItemDelegate): def second_row_text(self, index: QModelIndex) -> str: flight = self.flight(index) origin = flight.from_cp.name + if flight.arrival != flight.departure: + return f"From {origin} to {flight.arrival.name}" return f"From {origin}" def paint(self, painter: QPainter, option: QStyleOptionViewItem,