mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Allow editing pretty_name for waypoints
This commit is contained in:
parent
f22ad17651
commit
f5cb293e44
@ -8,4 +8,4 @@ class QWaypointItem(QStandardItem):
|
||||
super(QWaypointItem, self).__init__()
|
||||
self.number = number
|
||||
self.setText("{:<16}".format(point.pretty_name))
|
||||
self.setEditable(False)
|
||||
self.setEditable(True)
|
||||
|
||||
@ -106,6 +106,8 @@ class QFlightWaypointList(QTableView):
|
||||
altitude = self.model.item(i, 1).text()
|
||||
altitude_feet = float(altitude)
|
||||
self.flight.flight_plan.waypoints[i].alt = Distance.from_feet(altitude_feet)
|
||||
name = self.model.item(i, 0).text()
|
||||
self.flight.flight_plan.waypoints[i].pretty_name = name
|
||||
|
||||
def tot_text(self, flight: Flight, waypoint: FlightWaypoint) -> str:
|
||||
if waypoint.waypoint_type == FlightWaypointType.TAKEOFF:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user