mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Clean up remaining Flight.from_cp users.
The preferred API for this has been `Flight.departure` for a while.
This commit is contained in:
@@ -25,7 +25,7 @@ class QPlannedFlightsView(QListView):
|
||||
self.flight_items = []
|
||||
for package in self.game_model.ato_model.packages:
|
||||
for flight in package.flights:
|
||||
if flight.from_cp == self.cp:
|
||||
if flight.departure == self.cp:
|
||||
item = QFlightItem(package.package, flight)
|
||||
self.flight_items.append(item)
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class FlightPlanPropertiesGroup(QGroupBox):
|
||||
self.departure_time = QLabel()
|
||||
layout.addLayout(
|
||||
QLabeledWidget(
|
||||
f"Departing from <b>{flight.from_cp.name}</b>", self.departure_time
|
||||
f"Departing from <b>{flight.departure.name}</b>", self.departure_time
|
||||
)
|
||||
)
|
||||
self.package_model.tot_changed.connect(self.update_departure_time)
|
||||
|
||||
Reference in New Issue
Block a user